summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2022-04-23 18:04:44 -0700
committerDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2022-04-23 18:04:44 -0700
commitc345340c022fce046d70ca67059c2b4dc648bc1e (patch)
treef85f75af4f6c45f376838b6837cf625c36950e36
parentd31b800c35595428790905b21b771bbc187488ab (diff)
downloaddartboat-c345340c022fce046d70ca67059c2b4dc648bc1e.tar.gz
dartboat-c345340c022fce046d70ca67059c2b4dc648bc1e.tar.xz
web: support clearing prompt input via keyboard
-rw-r--r--web/static/dartboat.js2
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')