diff options
| author | jmoenig <jens@moenig.org> | 2014-10-01 10:12:37 +0200 |
|---|---|---|
| committer | jmoenig <jens@moenig.org> | 2014-10-01 10:12:37 +0200 |
| commit | 86672fec4a5684c1d33a75cc3ff9ec5ee13fced3 (patch) | |
| tree | a1e453debb083d5c67fc8190a212fe448bd3634a | |
| parent | c6815c11d414fbdaf3f3f4555ea542378378f337 (diff) | |
| download | snap-yow-86672fec4a5684c1d33a75cc3ff9ec5ee13fced3.tar.gz snap-yow-86672fec4a5684c1d33a75cc3ff9ec5ee13fced3.zip | |
fixed #599
disable IDE keyboard shortcuts in presentation mode
| -rwxr-xr-x | history.txt | 1 | ||||
| -rw-r--r-- | objects.js | 18 |
2 files changed, 13 insertions, 6 deletions
diff --git a/history.txt b/history.txt index fb2c065..19b962a 100755 --- a/history.txt +++ b/history.txt @@ -2294,3 +2294,4 @@ ______ 140930 ------ * Threads: workaround for some REPORT issues +* Objects: fixed #599 (disable IDE keyboard shortcuts in presentation mode) @@ -125,7 +125,7 @@ PrototypeHatBlockMorph*/ // Global stuff //////////////////////////////////////////////////////// -modules.objects = '2014-September-30'; +modules.objects = '2014-October-01'; var SpriteMorph; var StageMorph; @@ -4675,6 +4675,7 @@ StageMorph.prototype.fireKeyEvent = function (key) { var evt = key.toLowerCase(), hats = [], procs = [], + ide = this.parentThatIsA(IDE_Morph), myself = this; this.keysPressed[evt] = true; @@ -4682,19 +4683,24 @@ StageMorph.prototype.fireKeyEvent = function (key) { return this.fireGreenFlagEvent(); } if (evt === 'ctrl f') { - return this.parentThatIsA(IDE_Morph).currentSprite.searchBlocks(); + if (!ide.isAppMode) {ide.currentSprite.searchBlocks(); } + return; } if (evt === 'ctrl n') { - return this.parentThatIsA(IDE_Morph).createNewProject(); + if (!ide.isAppMode) {ide.createNewProject(); } + return; } if (evt === 'ctrl o') { - return this.parentThatIsA(IDE_Morph).openProjectsBrowser(); + if (!ide.isAppMode) {ide.openProjectsBrowser(); } + return; } if (evt === 'ctrl s') { - return this.parentThatIsA(IDE_Morph).save(); + if (!ide.isAppMode) {ide.save(); } + return; } if (evt === 'ctrl shift s') { - return this.parentThatIsA(IDE_Morph).saveProjectsBrowser(); + if (!ide.isAppMode) {return ide.saveProjectsBrowser(); } + return; } if (evt === 'esc') { return this.fireStopAllEvent(); |
