mirror of
https://github.com/nix-community/nix-on-droid-app.git
synced 2025-11-08 19:46:10 +01:00
only send PF1 for num lock when in application mode
This commit is contained in:
parent
7b4a69f839
commit
78cdaef6d2
1 changed files with 5 additions and 2 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue