From 871dc09cfb89b3094342907ff46c3a7b28c20338 Mon Sep 17 00:00:00 2001 From: Phil Jones Date: Tue, 2 May 2023 19:29:28 +0100 Subject: Swap Ctrl-O binding for Ctrl-[. --- doc/tofi.1.md | 2 +- doc/tofi.1.scd | 2 +- src/input.c | 2 +- 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. -\ +\ \| \-c \| \-\[ > 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 Confirm the current selection and quit. - | -c | -o + | -c | -[ 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, -- cgit v1.2.3