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:
parent
a3a24d9765
commit
ec3b422ecd
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue