diff options
| author | Jules Aguillon | 2024-12-31 12:10:02 +0100 |
|---|---|---|
| committer | Jules Aguillon | 2024-12-31 12:17:22 +0100 |
| commit | 42c23d386432df0b79b4835bc711e27724a91cbc (patch) | |
| tree | 1aa040c8ec3c007197886768952618523eafd382 /srcs/juloo.keyboard2/LayoutModifier.java | |
| parent | f64a0be6fa90958ceacd01d91ef4fcd193c815bc (diff) | |
| download | unexpected-keyboard-42c23d386432df0b79b4835bc711e27724a91cbc.tar.gz unexpected-keyboard-42c23d386432df0b79b4835bc711e27724a91cbc.zip | |
Refactor: Simplify double tap for capslock
This doesn't fix a bug but remove some tricky code. The shift key is no
longer different when the "double tap for capslock" option is on.
The handling of the option is moved to Pointer instead and becomes
simpler.
Diffstat (limited to 'srcs/juloo.keyboard2/LayoutModifier.java')
| -rw-r--r-- | srcs/juloo.keyboard2/LayoutModifier.java | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/srcs/juloo.keyboard2/LayoutModifier.java b/srcs/juloo.keyboard2/LayoutModifier.java index 31f5468..3ae98ca 100644 --- a/srcs/juloo.keyboard2/LayoutModifier.java +++ b/srcs/juloo.keyboard2/LayoutModifier.java @@ -175,15 +175,6 @@ public final class LayoutModifier break; } break; - case Modifier: - switch (orig.getModifier()) - { - case SHIFT: - if (globalConfig.double_tap_lock_shift) - return orig.withFlags(orig.getFlags() | KeyValue.FLAG_LOCK); - break; - } - break; } return orig; } |
