Skip to content

Commit f83d28c

Browse files
committed
fix: KP_* would be processed twice
Close osfans#1524.
1 parent c24ce82 commit f83d28c

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

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

-9
Original file line numberDiff line numberDiff line change
@@ -297,15 +297,6 @@ 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-
}
309300
}
310301
}
311302
}

0 commit comments

Comments
 (0)