mirror of
https://github.com/fankes/termux-app.git
synced 2025-09-04 17:55:36 +08:00
only send PF1 for num lock when in application mode
This commit is contained in:
@@ -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):
|
||||
|
Reference in New Issue
Block a user