abouttreesummaryrefslogcommitdiff
path: root/srcs/juloo.keyboard2/EmojiGridView.java
diff options
context:
space:
mode:
authorJules Aguillon2022-06-05 01:38:42 +0200
committerJules Aguillon2022-06-05 01:43:58 +0200
commit4127aa6f033a258aa89ff3704a952505c8c056cb (patch)
tree5a1dcada711e1ed85c28d626abf0b2e484f7fcff /srcs/juloo.keyboard2/EmojiGridView.java
parent4f9375373e3ce9514550fa0470b40ae7f0ff19b2 (diff)
downloadunexpected-keyboard-4127aa6f033a258aa89ff3704a952505c8c056cb.tar.gz
unexpected-keyboard-4127aa6f033a258aa89ff3704a952505c8c056cb.zip
Stop using flags for modifiers
There was no free bits left to add new modifiers. Instead of increasing the width of the 'flags' field, refactor the way modifiers are represented and used. Modifers are now represented as independent values and stored in the 'code' field. A flag is added to distinguish between modifiers and keys with a key event. The most notable change is that modifiers can no longer be or-ed into a single value but have to be represented as an array.
Diffstat (limited to 'srcs/juloo.keyboard2/EmojiGridView.java')
-rw-r--r--srcs/juloo.keyboard2/EmojiGridView.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/srcs/juloo.keyboard2/EmojiGridView.java b/srcs/juloo.keyboard2/EmojiGridView.java
index eb2d6df..9f0a3a5 100644
--- a/srcs/juloo.keyboard2/EmojiGridView.java
+++ b/srcs/juloo.keyboard2/EmojiGridView.java
@@ -55,7 +55,7 @@ public class EmojiGridView extends GridView
Config config = Config.globalConfig();
Integer used = _lastUsed.get(_emojiArray[pos]);
_lastUsed.put(_emojiArray[pos], (used == null) ? 1 : used.intValue() + 1);
- config.handler.handleKeyUp(_emojiArray[pos], 0);
+ config.handler.handleKeyUp(_emojiArray[pos], Pointers.Modifiers.EMPTY);
saveLastUsed(); // TODO: opti
}