diff options
author | Devine Lu Linvega <[email protected]> | 2019-03-19 13:50:40 +0900 |
---|---|---|
committer | Devine Lu Linvega <[email protected]> | 2019-03-19 13:50:40 +0900 |
commit | b85f2eda9b5282a437cba4f08aa17cb5836b4185 (patch) | |
tree | 26224bf6f2f169e3f7bf77ae09d9b8a09cfdb1ca /desktop/sources | |
parent | eb8b3c4317d8fd44b320255c5deac7a1b3fa4433 (diff) | |
download | Orca-b85f2eda9b5282a437cba4f08aa17cb5836b4185.tar.gz Orca-b85f2eda9b5282a437cba4f08aa17cb5836b4185.zip |
Don't toggle play in insert mode.
Diffstat (limited to 'desktop/sources')
-rw-r--r-- | desktop/sources/scripts/keyboard.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/desktop/sources/scripts/keyboard.js b/desktop/sources/scripts/keyboard.js index 9d5ec53..30d73d5 100644 --- a/desktop/sources/scripts/keyboard.js +++ b/desktop/sources/scripts/keyboard.js @@ -30,7 +30,7 @@ function Keyboard (terminal) { if (event.key === 'Enter') { terminal.cursor.toggleMode(1); return } if (event.key === 'Backspace' || event.key === '.') { terminal.cursor.erase(); return } - if (event.key === ' ') { terminal.togglePlay(); event.preventDefault(); return } + if (event.key === ' ' && terminal.cursor.mode === 0) { terminal.togglePlay(); event.preventDefault(); return } if (event.key === 'Escape') { terminal.clear(); terminal.isPaused = false; terminal.cursor.reset(); return } if (event.key === ']') { terminal.modGrid(1, 0); event.preventDefault(); return } |