mirror of
https://github.com/kovidgoyal/kitty.git
synced 2024-11-10 13:04:03 +03:00
Distinguish shifted Pgup and PgDn keys in normal and application mode
Fixes #791
This commit is contained in:
parent
634d262b64
commit
1dc3dfe58f
16
kitty/keys.h
generated
16
kitty/keys.h
generated
@ -598,9 +598,9 @@ key_lookup(uint8_t key, KeyboardMode mode, uint8_t mods, uint8_t action) {
|
||||
case 59: // UP
|
||||
return "\x06\x1b\x5b\x31\x3b\x32\x41";
|
||||
case 60: // PAGE_UP
|
||||
return "\x04\x1b\x5b\x35\x7e";
|
||||
return "\x06\x1b\x5b\x35\x3b\x32\x7e";
|
||||
case 61: // PAGE_DOWN
|
||||
return "\x04\x1b\x5b\x36\x7e";
|
||||
return "\x06\x1b\x5b\x36\x3b\x32\x7e";
|
||||
case 62: // HOME
|
||||
return "\x06\x1b\x5b\x31\x3b\x32\x48";
|
||||
case 63: // END
|
||||
@ -2225,9 +2225,9 @@ key_lookup(uint8_t key, KeyboardMode mode, uint8_t mods, uint8_t action) {
|
||||
case 59: // UP
|
||||
return "\x06\x1b\x5b\x31\x3b\x32\x41";
|
||||
case 60: // PAGE_UP
|
||||
return "\x04\x1b\x5b\x35\x7e";
|
||||
return "\x06\x1b\x5b\x35\x3b\x32\x7e";
|
||||
case 61: // PAGE_DOWN
|
||||
return "\x04\x1b\x5b\x36\x7e";
|
||||
return "\x06\x1b\x5b\x36\x3b\x32\x7e";
|
||||
case 62: // HOME
|
||||
return "\x06\x1b\x5b\x31\x3b\x32\x48";
|
||||
case 63: // END
|
||||
@ -3861,9 +3861,9 @@ key_lookup(uint8_t key, KeyboardMode mode, uint8_t mods, uint8_t action) {
|
||||
case 59: // UP
|
||||
return "\x06\x1b\x5b\x31\x3b\x32\x41";
|
||||
case 60: // PAGE_UP
|
||||
return "\x04\x1b\x5b\x35\x7e";
|
||||
return "\x06\x1b\x5b\x35\x3b\x32\x7e";
|
||||
case 61: // PAGE_DOWN
|
||||
return "\x04\x1b\x5b\x36\x7e";
|
||||
return "\x06\x1b\x5b\x36\x3b\x32\x7e";
|
||||
case 62: // HOME
|
||||
return "\x06\x1b\x5b\x31\x3b\x32\x48";
|
||||
case 63: // END
|
||||
@ -5488,9 +5488,9 @@ key_lookup(uint8_t key, KeyboardMode mode, uint8_t mods, uint8_t action) {
|
||||
case 59: // UP
|
||||
return "\x06\x1b\x5b\x31\x3b\x32\x41";
|
||||
case 60: // PAGE_UP
|
||||
return "\x04\x1b\x5b\x35\x7e";
|
||||
return "\x06\x1b\x5b\x35\x3b\x32\x7e";
|
||||
case 61: // PAGE_DOWN
|
||||
return "\x04\x1b\x5b\x36\x7e";
|
||||
return "\x06\x1b\x5b\x36\x3b\x32\x7e";
|
||||
case 62: // HOME
|
||||
return "\x06\x1b\x5b\x31\x3b\x32\x48";
|
||||
case 63: // END
|
||||
|
@ -48,6 +48,8 @@ SHIFTED_KEYS = {
|
||||
defines.GLFW_KEY_RIGHT: key_as_bytes('kRIT'),
|
||||
defines.GLFW_KEY_UP: key_as_bytes('kri'),
|
||||
defines.GLFW_KEY_DOWN: key_as_bytes('kind'),
|
||||
defines.GLFW_KEY_PAGE_UP: modify_complex_key('kpp', 2),
|
||||
defines.GLFW_KEY_PAGE_DOWN: modify_complex_key('knp', 2),
|
||||
}
|
||||
|
||||
control_alt_codes = {
|
||||
|
Loading…
Reference in New Issue
Block a user