mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-08 10:06:22 -05:00
input: regression test for escape sequence generated for ctrl+shift+tab
This commit is contained in:
parent
51f7599e91
commit
360946917c
1 changed files with 15 additions and 0 deletions
15
input.c
15
input.c
|
|
@ -884,6 +884,21 @@ keymap_lookup(struct terminal *term, xkb_keysym_t sym, enum modifier mods)
|
|||
return NULL;
|
||||
}
|
||||
|
||||
#if defined(_DEBUG)
|
||||
static void __attribute__((constructor))
|
||||
test_keymap_lookup(void)
|
||||
{
|
||||
struct terminal term = {
|
||||
.num_lock_modifier = false,
|
||||
.keypad_keys_mode = KEYPAD_NUMERICAL,
|
||||
.cursor_keys_mode = CURSOR_KEYS_NORMAL,
|
||||
};
|
||||
|
||||
const struct key_data *info = keymap_lookup(&term, XKB_KEY_ISO_Left_Tab, MOD_SHIFT | MOD_CTRL);
|
||||
xassert(strcmp(info->seq, "\033[27;6;9~") == 0);
|
||||
}
|
||||
#endif
|
||||
|
||||
static void
|
||||
key_press_release(struct seat *seat, struct terminal *term, uint32_t serial,
|
||||
uint32_t key, uint32_t state)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue