Merge pull request #1889 from rakslice/numpad_arrows

Implement numpad arrows/home/end/pgup/pgdn/ins/del when num lock is off
This commit is contained in:
Leonid Pliushch
2021-02-03 23:43:05 +02:00
committed by GitHub
3 changed files with 97 additions and 24 deletions

View File

@@ -591,6 +591,7 @@ public final class TerminalView extends View {
if (controlDown) keyMod |= KeyHandler.KEYMOD_CTRL;
if (event.isAltPressed() || leftAltDown) keyMod |= KeyHandler.KEYMOD_ALT;
if (event.isShiftPressed()) keyMod |= KeyHandler.KEYMOD_SHIFT;
if (event.isNumLockOn()) keyMod |= KeyHandler.KEYMOD_NUM_LOCK;
if (!event.isFunctionPressed() && handleKeyCode(keyCode, keyMod)) {
if (LOG_KEY_EVENTS) Log.i(EmulatorDebug.LOG_TAG, "handleKeyCode() took key event");
return true;