mirror of
https://github.com/fankes/termux-app.git
synced 2025-09-06 18:55:31 +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:
|
// Just do what xterm and gnome-terminal does:
|
||||||
return prefix + (((keyMode & KEYMOD_CTRL) == 0) ? "\u007F" : "\u0008");
|
return prefix + (((keyMode & KEYMOD_CTRL) == 0) ? "\u007F" : "\u0008");
|
||||||
case KEYCODE_NUM_LOCK:
|
case KEYCODE_NUM_LOCK:
|
||||||
return "\033OP";
|
if (keypadApplication) {
|
||||||
|
return "\033OP";
|
||||||
|
} else {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
case KEYCODE_SPACE:
|
case KEYCODE_SPACE:
|
||||||
// If ctrl is not down, return null so that it goes through normal input processing (which may e.g. cause a
|
// 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):
|
// combining accent to be written):
|
||||||
|
Reference in New Issue
Block a user