1
0
Fork 0
mirror of https://github.com/seejohnrun/haste-server.git synced 2024-11-25 05:51:22 +00:00

Added shift modifier to twitter shortcut

Closes #29
This commit is contained in:
John Crepezzi 2012-12-23 10:53:53 -05:00
parent 46bdd27431
commit afb0c332cc

View file

@ -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));
}