Skip to content

Commit

Permalink
fix: KP_* would be processed twice
Browse files Browse the repository at this point in the history
Close #1524.
  • Loading branch information
WhiredPlanck committed Jan 1, 2025
1 parent c24ce82 commit f83d28c
Showing 1 changed file with 0 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -297,15 +297,6 @@ 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 f83d28c

Please sign in to comment.