diff options
author | Devine Lu Linvega <[email protected]> | 2019-04-13 14:04:23 +0900 |
---|---|---|
committer | Devine Lu Linvega <[email protected]> | 2019-04-13 14:04:23 +0900 |
commit | d0dd7f9c33e9efbdff9f9dc1a06fc4cd5795d6f8 (patch) | |
tree | 52adf11ca26e144f6ed743654ee0bb5fe9b99211 /desktop/sources/scripts/commander.js | |
parent | ae7cace056ee65909665305d5173643757e84445 (diff) | |
download | Orca-d0dd7f9c33e9efbdff9f9dc1a06fc4cd5795d6f8.tar.gz Orca-d0dd7f9c33e9efbdff9f9dc1a06fc4cd5795d6f8.zip |
Improved .erase(), fixes #77
Diffstat (limited to 'desktop/sources/scripts/commander.js')
-rw-r--r-- | desktop/sources/scripts/commander.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/desktop/sources/scripts/commander.js b/desktop/sources/scripts/commander.js index edd51ef..6d9bd62 100644 --- a/desktop/sources/scripts/commander.js +++ b/desktop/sources/scripts/commander.js @@ -60,9 +60,8 @@ function Commander (terminal) { this.read = function (key) { const tool = this.isActive === true ? 'commander' : 'cursor' - const func = event.key === 'Backspace' ? 'erase' : 'write' - terminal[tool][func](event.key) + terminal[tool].write(event.key) terminal.update() } |