abouttreesummaryrefslogcommitdiff
path: root/test/juloo.keyboard2/KeyValueParserTest.java
diff options
context:
space:
mode:
authorJules Aguillon2025-02-28 00:35:43 +0100
committerJules Aguillon2025-02-28 00:36:14 +0100
commit55cb5f5315c9183f6e4821daa26997e329e30fd8 (patch)
treec17500664e69a78b5b9231704a1473bccc4a5523 /test/juloo.keyboard2/KeyValueParserTest.java
parentb7d1508d7b74b3d634b8f3a547d56c27e10f80c8 (diff)
downloadunexpected-keyboard-55cb5f5315c9183f6e4821daa26997e329e30fd8.tar.gz
unexpected-keyboard-55cb5f5315c9183f6e4821daa26997e329e30fd8.zip
Make key symbol smaller when 2 characters long or more
This was the case for string keys but not for macros or keys with custom symbols.
Diffstat (limited to 'test/juloo.keyboard2/KeyValueParserTest.java')
-rw-r--r--test/juloo.keyboard2/KeyValueParserTest.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/juloo.keyboard2/KeyValueParserTest.java b/test/juloo.keyboard2/KeyValueParserTest.java
index b7abbef..d56b6b5 100644
--- a/test/juloo.keyboard2/KeyValueParserTest.java
+++ b/test/juloo.keyboard2/KeyValueParserTest.java
@@ -93,7 +93,7 @@ public class KeyValueParserTest
public void parse_key_event() throws Exception
{
Utils.parse("a:keyevent:85", KeyValue.keyeventKey("a", 85, 0));
- Utils.parse("symbol:keyevent:85", KeyValue.keyeventKey("symbol", 85, 0));
+ Utils.parse("symbol:keyevent:85", KeyValue.keyeventKey("symbol", 85, KeyValue.FLAG_SMALLER_FONT));
Utils.parse("macro:keyevent:85,abc", KeyValue.makeMacro("macro", new KeyValue[]{
KeyValue.keyeventKey("", 85, 0),
KeyValue.makeStringKey("abc")
@@ -112,7 +112,7 @@ public class KeyValueParserTest
Utils.parse(":str:'Foo'", KeyValue.makeStringKey("Foo"));
Utils.parse(":str flags='dim':'Foo'", KeyValue.makeStringKey("Foo", KeyValue.FLAG_SECONDARY));
Utils.parse(":str symbol='Symbol':'Foo'", KeyValue.makeStringKey("Foo").withSymbol("Symbol"));
- Utils.parse(":str symbol='Symbol' flags='dim':'f'", KeyValue.makeStringKey("f").withSymbol("Symbol").withFlags(KeyValue.FLAG_SECONDARY));
+ Utils.parse(":str symbol='Symbol' flags='dim':'f'", KeyValue.makeStringKey("f").withSymbol("Symbol").withFlags(KeyValue.FLAG_SECONDARY | KeyValue.FLAG_SMALLER_FONT));
Utils.parse(":str flags='dim,small':'Foo'", KeyValue.makeStringKey("Foo", KeyValue.FLAG_SECONDARY | KeyValue.FLAG_SMALLER_FONT));
Utils.parse(":str flags=',,':'Foo'", KeyValue.makeStringKey("Foo")); // Unintentional
Utils.expect_error(":unknown:Foo"); // Unknown kind