abouttreesummaryrefslogcommitdiff
path: root/srcs/juloo.keyboard2/EmojiKeyButton.java
AgeCommit message (Collapse)AuthorFilesLines
2022-06-24Fix localized key not in predefined positionJules Aguillon1-1/+2
The "loc " prefix for predefining a place for an "extra key" was broken since 31d6a70. The FLAG_LOCALIZED flag cannot be used anymore, as adding it to any key would turn it into a different key that wouldn't be recognized by parts of the code comparing the keys (placing the extra keys). Add an other layer in KeyboardData to store such informations.
2022-06-05Refactor: Abstract KeyValue fieldsJules Aguillon1-2/+2
The meaning of the public fields of KeyValue was quite complicated and not handled consistently accross the app. Make these fields private and add a more abstract API on top. The meaning of these fields changed recently and it wasn't an easy change. I plan on making more changes in the future.
2022-06-05Stop using flags for modifiersJules Aguillon1-1/+1
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.
2021-12-28Reference the "special key font" in the Theme objectJules Aguillon1-1/+1
Remove the last cast of the context.
2021-12-28Separate "handler" codeJules Aguillon1-3/+2
As with the previous commit, remove casts of the context. The "handler" object is referenced in the "config" object for now.
2021-12-19Auto-format Java and XML filesJules Aguillon1-16/+16
Use xmllint. Re-indent Java files using spaces.
2021-04-18Separate handling of modifiers from KeyValue classJules Aguillon1-2/+2
KeyValue defines an ADT and some of its values, it now contains public final fields and no internal logic. KeyModifier handles modifiers and accents and creates new instances of KeyValue when needed. This operation is now properly cached.
2015-10-24Emoji panejaguillo1-0/+29