From c345340c022fce046d70ca67059c2b4dc648bc1e Mon Sep 17 00:00:00 2001 From: David Vazgenovich Shakaryan Date: Sat, 23 Apr 2022 18:04:44 -0700 Subject: web: support clearing prompt input via keyboard --- web/static/dartboat.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'web') 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') -- cgit v1.2.3-70-g09d2