diff options
| author | Jules Aguillon | 2024-06-30 00:24:39 +0200 |
|---|---|---|
| committer | Jules Aguillon | 2024-06-30 00:24:39 +0200 |
| commit | bdb080657d4e829210270b17d21df976eadf632b (patch) | |
| tree | a8aff6663b5e5932c39438a002b96ebe2916d3f2 /srcs/juloo.keyboard2/Config.java | |
| parent | bf33230c26911f7a2e267c1ce5db4fcc096e1602 (diff) | |
| download | unexpected-keyboard-bdb080657d4e829210270b17d21df976eadf632b.tar.gz unexpected-keyboard-bdb080657d4e829210270b17d21df976eadf632b.zip | |
Option to disable key repeat
Internally "key repeat" is reword into "long press" when the same
mechanism was used for both features.
The constraint that 'timeoutWhat' must be set to '-1' when no message is
expected has been lifted to simplify the code.
Diffstat (limited to 'srcs/juloo.keyboard2/Config.java')
| -rw-r--r-- | srcs/juloo.keyboard2/Config.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/srcs/juloo.keyboard2/Config.java b/srcs/juloo.keyboard2/Config.java index 8b72bc7..7570728 100644 --- a/srcs/juloo.keyboard2/Config.java +++ b/srcs/juloo.keyboard2/Config.java @@ -47,6 +47,7 @@ public final class Config public long vibrate_duration; public long longPressTimeout; public long longPressInterval; + public boolean keyrepeat_enabled; public float margin_bottom; public float keyHeight; public float horizontal_margin; @@ -152,6 +153,7 @@ public final class Config vibrate_duration = _prefs.getInt("vibrate_duration", 20); longPressTimeout = _prefs.getInt("longpress_timeout", 600); longPressInterval = _prefs.getInt("longpress_interval", 65); + keyrepeat_enabled = _prefs.getBoolean("keyrepeat_enabled", true); margin_bottom = get_dip_pref_oriented(dm, "margin_bottom", 7, 3); key_vertical_margin = get_dip_pref(dm, "key_vertical_margin", 1.5f) / 100; key_horizontal_margin = get_dip_pref(dm, "key_horizontal_margin", 2) / 100; |
