only send PF1 for num lock when in application mode

This commit is contained in:
rakslice
2021-01-16 19:53:22 -08:00
parent 7b4a69f839
commit 78cdaef6d2

View File

@@ -235,8 +235,11 @@ public final class KeyHandler {
// Just do what xterm and gnome-terminal does:
return prefix + (((keyMode & KEYMOD_CTRL) == 0) ? "\u007F" : "\u0008");
case KEYCODE_NUM_LOCK:
return "\033OP";
if (keypadApplication) {
return "\033OP";
} else {
return null;
}
case KEYCODE_SPACE:
// If ctrl is not down, return null so that it goes through normal input processing (which may e.g. cause a
// combining accent to be written):