diff --git a/kitty/keys.h b/kitty/keys.h index 80acef16c..67f4697cb 100644 --- a/kitty/keys.h +++ b/kitty/keys.h @@ -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 diff --git a/kitty/keys.py b/kitty/keys.py index 35d4a4105..2bac7e7a1 100644 --- a/kitty/keys.py +++ b/kitty/keys.py @@ -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 = {