diff options
author | Devine Lu Linvega <[email protected]> | 2019-06-16 18:13:56 +0900 |
---|---|---|
committer | Devine Lu Linvega <[email protected]> | 2019-06-16 18:13:56 +0900 |
commit | 9f324e77e438a52ad3fd6457c44b9273d1b47281 (patch) | |
tree | 0c0eaa47be87d20986b85343a7047456fdfb3c1b | |
parent | 894f49236f5c2f66cbc365586907c310be6279ed (diff) | |
download | Orca-9f324e77e438a52ad3fd6457c44b9273d1b47281.tar.gz Orca-9f324e77e438a52ad3fd6457c44b9273d1b47281.zip |
Fixes #146
-rw-r--r-- | desktop/sources/scripts/clock.js | 5 | ||||
-rw-r--r-- | desktop/sources/scripts/commander.js | 2 |
2 files changed, 2 insertions, 5 deletions
diff --git a/desktop/sources/scripts/clock.js b/desktop/sources/scripts/clock.js index 423b1e5..99cb1e8 100644 --- a/desktop/sources/scripts/clock.js +++ b/desktop/sources/scripts/clock.js @@ -42,11 +42,6 @@ export default function Clock (terminal) { // Controls this.togglePlay = function () { - // If in insert mode, insert space - if (terminal.cursor.mode === 1) { - terminal.cursor.move(1, 0) - return - } if (this.isPaused === true) { this.play() } else { diff --git a/desktop/sources/scripts/commander.js b/desktop/sources/scripts/commander.js index 4d8cf63..72c567b 100644 --- a/desktop/sources/scripts/commander.js +++ b/desktop/sources/scripts/commander.js @@ -153,6 +153,8 @@ export default function Commander (terminal) { if (event.ctrlKey) { return } if (event.key === ' ' && terminal.cursor.mode === 0) { terminal.clock.togglePlay(); event.preventDefault(); return } + if (event.key === ' ' && terminal.cursor.mode === 1) { terminal.cursor.move(1, 0); event.preventDefault(); return } + if (event.key === 'Escape') { terminal.toggleGuide(false); terminal.commander.stop(); terminal.clear(); terminal.isPaused = false; terminal.cursor.reset(); return } if (event.key === 'Backspace') { terminal[this.isActive === true ? 'commander' : 'cursor'].erase(); event.preventDefault(); return } |