diff options
author | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2022-04-23 18:04:44 -0700 |
---|---|---|
committer | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2022-04-23 18:04:44 -0700 |
commit | c345340c022fce046d70ca67059c2b4dc648bc1e (patch) | |
tree | f85f75af4f6c45f376838b6837cf625c36950e36 /web/static/dartboat.js | |
parent | d31b800c35595428790905b21b771bbc187488ab (diff) | |
download | dartboat-c345340c022fce046d70ca67059c2b4dc648bc1e.tar.gz dartboat-c345340c022fce046d70ca67059c2b4dc648bc1e.tar.xz |
web: support clearing prompt input via keyboard
Diffstat (limited to 'web/static/dartboat.js')
-rw-r--r-- | web/static/dartboat.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/web/static/dartboat.js b/web/static/dartboat.js index b007c81..6740381 100644 --- a/web/static/dartboat.js +++ b/web/static/dartboat.js @@ -246,6 +246,8 @@ document.addEventListener('keydown', e => { promptHandle('submit'); else if (e.key == 'Backspace') promptHandle('backspace'); + else if (e.key == 'c') + promptHandle('clear'); else if (e.key == 'r') promptHandle('submit_rem'); else if (e.key == 'u') |