diff options
| author | Jules Aguillon | 2022-10-23 21:34:05 +0200 |
|---|---|---|
| committer | Jules Aguillon | 2022-10-23 21:37:04 +0200 |
| commit | 36e10a792ffd034ffb56e48e2e2282f6ae16cc8d (patch) | |
| tree | af8b28705250fd8a1a685d0bc79c759cd5b66059 /srcs/juloo.keyboard2/Keyboard2View.java | |
| parent | 55cece796588ad58646d9ea877912510af06e24e (diff) | |
| download | unexpected-keyboard-36e10a792ffd034ffb56e48e2e2282f6ae16cc8d.tar.gz unexpected-keyboard-36e10a792ffd034ffb56e48e2e2282f6ae16cc8d.zip | |
Add the capslock key
The key enable caps lock immediately. It does nothing if caps lock is
already enabled.
It is not present on the keyboard by default but a place is defined on
every layout, top-right of the shift key. It can be enabled in the
settings.
The icon is from materialdesignicons.com.
Diffstat (limited to 'srcs/juloo.keyboard2/Keyboard2View.java')
| -rw-r--r-- | srcs/juloo.keyboard2/Keyboard2View.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/srcs/juloo.keyboard2/Keyboard2View.java b/srcs/juloo.keyboard2/Keyboard2View.java index e613925..4742235 100644 --- a/srcs/juloo.keyboard2/Keyboard2View.java +++ b/srcs/juloo.keyboard2/Keyboard2View.java @@ -100,12 +100,12 @@ public class Keyboard2View extends View } /** Called by auto-capitalisation. */ - public void set_shift_state(boolean state) + public void set_shift_state(boolean state, boolean lock) { if (_keyboard == null || _shift_key == null) return; if (state) - _pointers.add_fake_pointer(_shift_kv, _shift_key); + _pointers.add_fake_pointer(_shift_kv, _shift_key, lock); else _pointers.remove_fake_pointer(_shift_kv, _shift_key); invalidate(); |
