abouttreesummaryrefslogcommitdiff
path: root/test/juloo.keyboard2/KeyValueParserTest.java
AgeCommit message (Collapse)AuthorFilesLines
2025-02-28Make key symbol smaller when 2 characters long or moreJules Aguillon1-2/+2
This was the case for string keys but not for macros or keys with custom symbols.
2025-02-28Refactor: Remove StringWithSymbolJules Aguillon1-5/+4
It's replaced with a macro containing one key.
2025-02-27KeyValue: Don't wrap keys into a macro when possibleJules Aguillon1-3/+8
Many kind of KeyValues don't need to be wrapped into a Macro to show a specific symbol. This is especially useful as Macro keys are not affected by modifiers. The parser is changed to have a fast-path when a key value is not a macro.
2025-02-23Macro keys (#878)Jules Aguillon1-7/+96
Add "macro" keys that behave as if a sequence of keys is typed. Macro can be added to custom layouts or through the "Add keys to the keyboard option". The syntax is: symbol:key1,key2,.. The symbol cannot contain a : character. 'key1', 'key2', etc.. are: - 'String with \' escaping' The key will generate the specified string. - keyevent:123 The key will send a keyevent. - The name of any special key
2024-09-29Improve Ctrl key labels for Serbian Cyrillic layoutJules Aguillon1-1/+8
Add the ':char' syntax for defining character keys with a different symbol. This new kind of keys is used to implement Ctrl combinations in the Serbian Cyrillic layout without showing latin letters while the Ctrl modifier is activated.
2024-09-29Add complex keys (#774)Jules Aguillon1-0/+54
This allows to add new kinds of keys that need more data without making KeyValue's footprint bigger for common keys. This changes the [_symbol] field into [_payload], which holds the same as the previous field for more common keys but can hold bigger objects for keys of the new "Complex" kind. This also adds a complex key: String keys with a symbol different than the outputted string. Unit tests are added as the Java language is not helpful in making robust code.