mirror of
https://github.com/seejohnrun/haste-server
synced 2025-08-24 12:15:18 -07:00
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
1 changed files with 2 additions and 2 deletions
|
@ -275,9 +275,9 @@ haste.prototype.configureButtons = function() {
|
||||||
$where: $('#box2 .new'),
|
$where: $('#box2 .new'),
|
||||||
label: 'New',
|
label: 'New',
|
||||||
shortcut: function(evt) {
|
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() {
|
action: function() {
|
||||||
_this.newDocument(!_this.doc.key);
|
_this.newDocument(!_this.doc.key);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue