From 0cbd99710b9d9ff5116c39e1d989556a6d7c27a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Fri, 29 Jul 2022 11:56:41 +0200 Subject: [PATCH] =?UTF-8?q?unicode-mode:=20=E2=80=98q=E2=80=99=20aborts=20?= =?UTF-8?q?Unicode=20input=20mode?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- doc/foot.ini.5.scd | 2 +- unicode-mode.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/foot.ini.5.scd b/doc/foot.ini.5.scd index d3881274..995a7e33 100644 --- a/doc/foot.ini.5.scd +++ b/doc/foot.ini.5.scd @@ -806,7 +806,7 @@ e.g. *search-start=none*. Recognized key bindings in Unicode input mode: - Enter, Space: commit the Unicode character, then exit this mode. - - Escape, Ctrl+c, Ctrl+d, Ctrl+g: abort input, then exit this mode. + - Escape, q, Ctrl+c, Ctrl+d, Ctrl+g: abort input, then exit this mode. - 0-9, a-f: append next digit to the Unicode's codepoint. - Backspace: undo the last digit. diff --git a/unicode-mode.c b/unicode-mode.c index 6b4b6050..a69601ec 100644 --- a/unicode-mode.c +++ b/unicode-mode.c @@ -68,6 +68,7 @@ unicode_mode_input(struct seat *seat, struct terminal *term, } else if (sym == XKB_KEY_Escape || + sym == XKB_KEY_q || (seat->kbd.ctrl && (sym == XKB_KEY_c || sym == XKB_KEY_d || sym == XKB_KEY_g)))