Fix arrow keys not repeating

The special handling of arrow keys have been removed in 854eff2. Key
repeat was not starting when the key0 was empty.
This commit is contained in:
Jules Aguillon 2023-02-08 22:38:01 +01:00
parent 82b2bf6dfb
commit 72249b8a42

View File

@ -346,8 +346,6 @@ public final class Pointers implements Handler.Callback
private void startKeyRepeat(Pointer ptr) private void startKeyRepeat(Pointer ptr)
{ {
if (ptr.value == null)
return;
int what = (uniqueTimeoutWhat++); int what = (uniqueTimeoutWhat++);
ptr.timeoutWhat = what; ptr.timeoutWhat = what;
_keyrepeat_handler.sendEmptyMessageDelayed(what, _config.longPressTimeout); _keyrepeat_handler.sendEmptyMessageDelayed(what, _config.longPressTimeout);