Skip to content

Commit 43a2c0e

Browse files
committed
Revert "fix: KP_* would be processed twice"
This reverts commit f83d28c.
1 parent 63a0fec commit 43a2c0e

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

app/src/main/java/com/osfans/trime/ime/keyboard/CommonKeyboardActionListener.kt

+9
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,15 @@ class CommonKeyboardActionListener(
297297

298298
when (keyEventCode) {
299299
KeyEvent.KEYCODE_BACK -> service.requestHideSelf(0)
300+
else -> {
301+
// 小键盘自动增加锁定
302+
if (keyEventCode in KeyEvent.KEYCODE_NUMPAD_0..KeyEvent.KEYCODE_NUMPAD_EQUALS) {
303+
service.sendDownUpKeyEvent(
304+
keyEventCode,
305+
metaState or KeyEvent.META_NUM_LOCK_ON,
306+
)
307+
}
308+
}
300309
}
301310
}
302311
}

0 commit comments

Comments
 (0)