Make C-[ have the same bindings as Escape for terminals with extended

keys where they are different, GitHub issue 5035 from Eric NICOLAS.
This commit is contained in:
nicm
2026-04-28 10:01:07 +00:00
parent 746dd91e86
commit 4a926e489b
4 changed files with 7 additions and 0 deletions

View File

@@ -1276,6 +1276,7 @@ mode_tree_key(struct mode_tree_data *mtd, struct client *c, key_code *key,
switch (*key) {
case 'q':
case '\033': /* Escape */
case '['|KEYC_CTRL:
case 'g'|KEYC_CTRL:
return (1);
case KEYC_F1: