diff options
author | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2022-05-22 19:58:22 -0700 |
---|---|---|
committer | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2022-05-22 19:58:22 -0700 |
commit | c93897ed2013f20d6ece33815971d206fd0d056e (patch) | |
tree | 875fde63a82b633e9589d1eb7ae70f6f1319d73f /web/static/dartboat.js | |
parent | e82e03f3acd09b79d3681dfeb1cf287b85db77dc (diff) | |
download | dartboat-c93897ed2013f20d6ece33815971d206fd0d056e.tar.gz dartboat-c93897ed2013f20d6ece33815971d206fd0d056e.tar.xz |
web: support early match exit 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 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) |