diff options
-rw-r--r-- | doc/tofi.1.scd | 2 | ||||
-rw-r--r-- | src/input.c | 6 |
2 files changed, 7 insertions, 1 deletions
diff --git a/doc/tofi.1.scd b/doc/tofi.1.scd index 35661a1..87bee2c 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> +<Escape> | <Ctrl>-c | <Ctrl>-o Quit without making a selection. # FILES diff --git a/src/input.c b/src/input.c index ad89dbd..018761f 100644 --- a/src/input.c +++ b/src/input.c @@ -101,6 +101,12 @@ void input_handle_keypress(struct tofi *tofi, xkb_keycode_t keycode) XKB_MOD_NAME_CTRL, XKB_STATE_MODS_EFFECTIVE) ) + || (key == KEY_O + && xkb_state_mod_name_is_active( + tofi->xkb_state, + XKB_MOD_NAME_CTRL, + XKB_STATE_MODS_EFFECTIVE) + ) ) { tofi->closed = true; |