From 8f3d1a4d38982dc61b435a3d225688cd8fc49f94 Mon Sep 17 00:00:00 2001 From: juloo Date: Tue, 18 Aug 2015 00:17:20 +0200 Subject: [PATCH] Fix key repeat on meta keys and empty keys --- srcs/juloo.keyboard2/Keyboard2View.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/srcs/juloo.keyboard2/Keyboard2View.java b/srcs/juloo.keyboard2/Keyboard2View.java index 8d29e91..ed6cf45 100644 --- a/srcs/juloo.keyboard2/Keyboard2View.java +++ b/srcs/juloo.keyboard2/Keyboard2View.java @@ -225,7 +225,8 @@ public class Keyboard2View extends View else { int what = _currentWhat++; - _handler.sendEmptyMessageDelayed(what, _longPressTimeout); + if (key.key0 != null && (key.key0.getFlags() & KeyValue.FLAG_NOCHAR) == 0) + _handler.sendEmptyMessageDelayed(what, _longPressTimeout); _downKeys.add(new KeyDown(pointerId, key, touchX, touchY, what)); } vibrate();