diff options
| author | juloo | 2015-08-18 00:17:20 +0200 |
|---|---|---|
| committer | juloo | 2015-08-18 00:17:20 +0200 |
| commit | 8f3d1a4d38982dc61b435a3d225688cd8fc49f94 (patch) | |
| tree | 51644e045e5ee3015145a0f4111abe661156dd17 /srcs | |
| parent | 4870fae20d942a243cd0711d9964ddf8177c63b4 (diff) | |
| download | unexpected-keyboard-8f3d1a4d38982dc61b435a3d225688cd8fc49f94.tar.gz unexpected-keyboard-8f3d1a4d38982dc61b435a3d225688cd8fc49f94.zip | |
Fix key repeat on meta keys and empty keys
Diffstat (limited to 'srcs')
| -rw-r--r-- | srcs/juloo.keyboard2/Keyboard2View.java | 3 |
1 files changed, 2 insertions, 1 deletions
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(); |
