summaryrefslogtreecommitdiff
path: root/web/static
diff options
context:
space:
mode:
authorDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2022-05-22 19:58:22 -0700
committerDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2022-05-22 19:58:22 -0700
commitc93897ed2013f20d6ece33815971d206fd0d056e (patch)
tree875fde63a82b633e9589d1eb7ae70f6f1319d73f /web/static
parente82e03f3acd09b79d3681dfeb1cf287b85db77dc (diff)
downloaddartboat-c93897ed2013f20d6ece33815971d206fd0d056e.tar.gz
dartboat-c93897ed2013f20d6ece33815971d206fd0d056e.tar.xz
web: support early match exit via keyboard
Diffstat (limited to 'web/static')
-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 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)