summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhil Jones <philj56@gmail.com>2023-05-02 19:29:28 +0100
committerPhil Jones <philj56@gmail.com>2023-05-02 19:29:28 +0100
commit871dc09cfb89b3094342907ff46c3a7b28c20338 (patch)
tree4baf0363b264469f8460c02a023349110d55ed6f
parent667075f0920da3c2b353fbce54b6430c195ef031 (diff)
Swap Ctrl-O binding for Ctrl-[.
-rw-r--r--doc/tofi.1.md2
-rw-r--r--doc/tofi.1.scd2
-rw-r--r--src/input.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/doc/tofi.1.md b/doc/tofi.1.md
index 5d7aaf8..925e59c 100644
--- a/doc/tofi.1.md
+++ b/doc/tofi.1.md
@@ -68,7 +68,7 @@ the form **--key=value**.
> Confirm the current selection and quit.
-\<Escape\>
+\<Escape\> \| \<Ctrl\>-c \| \<Ctrl\>-\[
> Quit without making a selection.
diff --git a/doc/tofi.1.scd b/doc/tofi.1.scd
index 87bee2c..7096d98 100644
--- a/doc/tofi.1.scd
+++ b/doc/tofi.1.scd
@@ -59,7 +59,7 @@ All config file options described in *tofi*(5) are also accepted, in the form
<Enter>
Confirm the current selection and quit.
-<Escape> | <Ctrl>-c | <Ctrl>-o
+<Escape> | <Ctrl>-c | <Ctrl>-[
Quit without making a selection.
# FILES
diff --git a/src/input.c b/src/input.c
index 018761f..573c5dd 100644
--- a/src/input.c
+++ b/src/input.c
@@ -101,7 +101,7 @@ void input_handle_keypress(struct tofi *tofi, xkb_keycode_t keycode)
XKB_MOD_NAME_CTRL,
XKB_STATE_MODS_EFFECTIVE)
)
- || (key == KEY_O
+ || (key == KEY_LEFTBRACE
&& xkb_state_mod_name_is_active(
tofi->xkb_state,
XKB_MOD_NAME_CTRL,