From c93897ed2013f20d6ece33815971d206fd0d056e Mon Sep 17 00:00:00 2001 From: David Vazgenovich Shakaryan Date: Sun, 22 May 2022 19:58:22 -0700 Subject: web: support early match exit 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 ecbee74..b342809 100644 --- a/web/static/dartboat.js +++ b/web/static/dartboat.js @@ -212,6 +212,8 @@ document.addEventListener('keydown', e => { promptHandle('rem'); else if (e.key == 'u') promptHandle('undo'); + else if (e.key == 'X' && $('#key-exit').classList.contains('visible')) + promptHandle('exit'); }); if ('serviceWorker' in navigator) -- cgit v1.2.3-70-g09d2