From afb0c332cc23cebde634d3c20b57566cf2f6ba79 Mon Sep 17 00:00:00 2001 From: John Crepezzi Date: Sun, 23 Dec 2012 10:53:53 -0500 Subject: [PATCH] Added shift modifier to twitter shortcut Closes #29 --- static/application.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/static/application.js b/static/application.js index 37f7757..c90648f 100644 --- a/static/application.js +++ b/static/application.js @@ -308,9 +308,9 @@ haste.prototype.configureButtons = function() { $where: $('#box2 .twitter'), label: 'Twitter', shortcut: function(evt) { - return _this.options.twitter && _this.doc.locked && evt.ctrlKey && evt.keyCode == 84; + return _this.options.twitter && _this.doc.locked && evt.shiftKey && evt.ctrlKey && evt.keyCode == 84; }, - shortcutDescription: 'control + t', + shortcutDescription: 'control + shift + t', action: function() { window.open('https://twitter.com/share?url=' + encodeURI(window.location.href)); }