diff options
| author | Jules Aguillon | 2022-07-24 23:55:00 +0200 |
|---|---|---|
| committer | Jules Aguillon | 2022-07-24 23:55:00 +0200 |
| commit | 53b9afa973e2ba1ab32f8e0865f624aaeb43aaa3 (patch) | |
| tree | b194ef4b5eacc51ddfedd77c21bb66ceb822f429 /srcs/juloo.keyboard2/Keyboard2View.java | |
| parent | 081e9a6e531a34bb1639c2527f315c0be966e5d7 (diff) | |
| download | unexpected-keyboard-53b9afa973e2ba1ab32f8e0865f624aaeb43aaa3.tar.gz unexpected-keyboard-53b9afa973e2ba1ab32f8e0865f624aaeb43aaa3.zip | |
Hold any modifier to lock
Modifiers can be locked with a long press. The key repeat mechanism is re-used
and the press timeout is the same.
Every modifiers can be locked that way, not only the "lockable" ones.
The previous behavior can be enabled in the settings (for shift only)
but the default is changed.
Diffstat (limited to 'srcs/juloo.keyboard2/Keyboard2View.java')
| -rw-r--r-- | srcs/juloo.keyboard2/Keyboard2View.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/srcs/juloo.keyboard2/Keyboard2View.java b/srcs/juloo.keyboard2/Keyboard2View.java index d946aa1..5ae2b06 100644 --- a/srcs/juloo.keyboard2/Keyboard2View.java +++ b/srcs/juloo.keyboard2/Keyboard2View.java @@ -133,9 +133,11 @@ public class Keyboard2View extends View _config.handler.handleKeyUp(k, mods); } - public void onPointerFlagsChanged() + public void onPointerFlagsChanged(boolean shouldVibrate) { invalidate(); + if (shouldVibrate) + vibrate(); } private void updateFlags() |
