From 92c5c8bedfc47a333755d4d4aa49939fc5594194 Mon Sep 17 00:00:00 2001 From: jmoenig Date: Tue, 8 Jul 2014 15:27:25 +0200 Subject: add keyboard shortcut for “new project”: ctr-n MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit note: some browsers (actually, most ^^) override this before Snap gets a chance to do its thing :-( --- objects.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'objects.js') diff --git a/objects.js b/objects.js index e76126c..1a9bb63 100644 --- a/objects.js +++ b/objects.js @@ -4581,6 +4581,9 @@ StageMorph.prototype.fireKeyEvent = function (key) { if (evt === 'ctrl f') { return this.parentThatIsA(IDE_Morph).currentSprite.searchBlocks(); } + if (evt === 'ctrl n') { + return this.parentThatIsA(IDE_Morph).createNewProject(); + } if (evt === 'ctrl o') { return this.parentThatIsA(IDE_Morph).openProjectsBrowser(); } -- cgit v1.3.1