From 72a4ffe2cf6ea29f069656495d14e9fe52058597 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sat, 3 Apr 2021 21:49:53 +0100 Subject: [PATCH] special selection: show hint for SPC Signed-off-by: Ian Jackson --- templates/script.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/templates/script.ts b/templates/script.ts index 19193940..c5804de1 100644 --- a/templates/script.ts +++ b/templates/script.ts @@ -341,6 +341,15 @@ function recompute_keybindings() { desc: wresting ? 'Exit wresting mode' : 'Enter wresting mode', wrc: 'Predictable', }); + if (special_count != null) { + add_uo(null, { + def_key: 'SPC', // won't match key event; we handle this ad-hoc + kind: 'ClientExtra', + opname: 'cancel-special', + desc: 'cancel special count', + wrc: 'Predictable', + }); + } add_uo(null, { def_key: 'h', kind: 'ClientExtra', @@ -474,6 +483,7 @@ function special_count_reupdate() { }`; } style_elem.innerHTML = style_text; + recompute_keybindings(); } keyops_local['left' ] = function (uo: UoRecord) { rotate_targets(uo, +1); } -- 2.30.2