diff options
| author | Jules Aguillon | 2023-09-10 11:43:56 +0200 |
|---|---|---|
| committer | Jules Aguillon | 2023-09-10 11:43:56 +0200 |
| commit | d771e9d2c7de7d62f5514995f4a224e1e293a376 (patch) | |
| tree | 8593ae2b8ac9fa9040acb04ba42424a845684615 /srcs/juloo.keyboard2/Keyboard2View.java | |
| parent | 44e2e86f19bd9e7acddad50506dad0737fa032d9 (diff) | |
| download | unexpected-keyboard-d771e9d2c7de7d62f5514995f4a224e1e293a376.tar.gz unexpected-keyboard-d771e9d2c7de7d62f5514995f4a224e1e293a376.zip | |
Refactor: Compute key positions in layouts
`KeyboardData.getKeys()` now returns a map of the keys present on the
layout to their position. Positions are the row, column and swipe
direction.
The computed map is cached in the KeyboardData object as it might be
accessed later by `findKeyWithValue`, which now do less work.
Diffstat (limited to 'srcs/juloo.keyboard2/Keyboard2View.java')
| -rw-r--r-- | srcs/juloo.keyboard2/Keyboard2View.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/srcs/juloo.keyboard2/Keyboard2View.java b/srcs/juloo.keyboard2/Keyboard2View.java index 949cdab..3ef9957 100644 --- a/srcs/juloo.keyboard2/Keyboard2View.java +++ b/srcs/juloo.keyboard2/Keyboard2View.java @@ -19,6 +19,9 @@ public class Keyboard2View extends View implements View.OnTouchListener, Pointers.IPointerEventHandler { private KeyboardData _keyboard; + + /** The key holding the shift key is used to set shift state from + autocapitalisation. */ private KeyValue _shift_kv; private KeyboardData.Key _shift_key; |
