From ec3b422ecd82295e3341c823ca2f4646bdae49cb Mon Sep 17 00:00:00 2001 From: Amer Almadani Date: Fri, 26 Aug 2016 14:19:18 +0300 Subject: [PATCH] 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. --- static/application.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/static/application.js b/static/application.js index c90648f..9971921 100644 --- a/static/application.js +++ b/static/application.js @@ -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); }