New file shortcut

As stated in issue #40; ctrl + n creates a new browser window rather than a new file. New shortcut ctlr + alt + n.
This commit is contained in:
Amer Almadani 2016-08-26 14:19:18 +03:00 committed by GitHub
parent a3a24d9765
commit ec3b422ecd
1 changed files with 2 additions and 2 deletions

View File

@ -275,9 +275,9 @@ haste.prototype.configureButtons = function() {
$where: $('#box2 .new'),
label: 'New',
shortcut: function(evt) {
return evt.ctrlKey && evt.keyCode === 78
return evt.ctrlKey && evt.altKey && evt.keyCode === 78
},
shortcutDescription: 'control + n',
shortcutDescription: 'control + atl + n',
action: function() {
_this.newDocument(!_this.doc.key);
}