Skip to content

Commit

Permalink
Revert "fix: KP_* would be processed twice"
Browse files Browse the repository at this point in the history
This reverts commit f83d28c.
  • Loading branch information
goofyz committed Jan 2, 2025
1 parent 63a0fec commit 43a2c0e
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,15 @@ class CommonKeyboardActionListener(

when (keyEventCode) {
KeyEvent.KEYCODE_BACK -> service.requestHideSelf(0)
else -> {
// 小键盘自动增加锁定
if (keyEventCode in KeyEvent.KEYCODE_NUMPAD_0..KeyEvent.KEYCODE_NUMPAD_EQUALS) {
service.sendDownUpKeyEvent(
keyEventCode,
metaState or KeyEvent.META_NUM_LOCK_ON,
)
}
}
}
}
}
Expand Down

0 comments on commit 43a2c0e

Please sign in to comment.