We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cdde3ac commit 4c23efaCopy full SHA for 4c23efa
src/input.c
@@ -26,10 +26,6 @@ static void reset_selection(struct tofi *tofi);
26
27
void input_handle_keypress(struct tofi *tofi, xkb_keycode_t keycode)
28
{
29
- if (tofi->xkb_state == NULL) {
30
- return;
31
- }
32
-
33
bool ctrl = xkb_state_mod_name_is_active(
34
tofi->xkb_state,
35
XKB_MOD_NAME_CTRL,
@@ -43,6 +39,14 @@ void input_handle_keypress(struct tofi *tofi, xkb_keycode_t keycode)
43
39
XKB_MOD_NAME_SHIFT,
44
40
XKB_STATE_MODS_EFFECTIVE);
45
41
42
+ if (tofi->xkb_state == NULL) {
+ return;
+ }
+ // Ignore "-char to prevent escaping the commands used for math and search
46
+ if (11 == keycode && shift) {
47
48
49
+
50
uint32_t ch = xkb_state_key_get_utf32(tofi->xkb_state, keycode);
51
52
/*
0 commit comments