feat(KeyHandler): respect modifiers with PgUp and PgDn

This commit is contained in:
Yaksh Bariya 2022-10-24 07:55:57 +05:30
parent 20dee0e940
commit c8a74dc588
No known key found for this signature in database
GPG Key ID: F7486BA7D3D27581
1 changed files with 2 additions and 2 deletions

View File

@ -227,9 +227,9 @@ public final class KeyHandler {
return transformForModifiers("\033[3", keyMode, '~');
case KEYCODE_PAGE_UP:
return "\033[5~";
return transformForModifiers("\033[5", keyMode, '~');
case KEYCODE_PAGE_DOWN:
return "\033[6~";
return transformForModifiers("\033[6", keyMode, '~');
case KEYCODE_DEL:
String prefix = ((keyMode & KEYMOD_ALT) == 0) ? "" : "\033";
// Just do what xterm and gnome-terminal does: