diff options
| author | Jules Aguillon | 2021-04-18 23:58:35 +0200 |
|---|---|---|
| committer | Jules Aguillon | 2021-04-18 23:58:35 +0200 |
| commit | 471375d50c10a9a9bf60c3e9b3ebb509d56b5e2c (patch) | |
| tree | 1bae6496b0096b9e5c92c394bfdf6291cd7fb4e5 /srcs/juloo.keyboard2/KeyValue.java | |
| parent | 2f8eae628f9ffe90a9e4254a800b6d69398abe6a (diff) | |
| download | unexpected-keyboard-471375d50c10a9a9bf60c3e9b3ebb509d56b5e2c.tar.gz unexpected-keyboard-471375d50c10a9a9bf60c3e9b3ebb509d56b5e2c.zip | |
Add function keys
Add the Fn modifier that change the digits into F1 to F10.
Diffstat (limited to 'srcs/juloo.keyboard2/KeyValue.java')
| -rw-r--r-- | srcs/juloo.keyboard2/KeyValue.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/srcs/juloo.keyboard2/KeyValue.java b/srcs/juloo.keyboard2/KeyValue.java index 4c4a5a0..a62ec07 100644 --- a/srcs/juloo.keyboard2/KeyValue.java +++ b/srcs/juloo.keyboard2/KeyValue.java @@ -23,6 +23,7 @@ class KeyValue public static final int FLAG_NOREPEAT = (1 << 5); public static final int FLAG_NOCHAR = (1 << 6); public static final int FLAG_LOCKED = (1 << 8); + public static final int FLAG_FN = (1 << 9); public static final int FLAG_KEY_FONT = (1 << 12); @@ -49,7 +50,7 @@ class KeyValue private static HashMap<String, KeyValue> keys = new HashMap<String, KeyValue>(); - protected KeyValue(String n, String s, char c, int e, int f) + public KeyValue(String n, String s, char c, int e, int f) { name = n; symbol = s; @@ -102,6 +103,7 @@ class KeyValue addModifierKey("accent4", "\u02DC", FLAG_ACCENT4); addModifierKey("accent5", "\u00B8", FLAG_ACCENT5); addModifierKey("accent6", "\u00A8", FLAG_ACCENT6); + addModifierKey("fn", "Fn", FLAG_FN); addCharKey('a', KeyEvent.KEYCODE_A); addCharKey('b', KeyEvent.KEYCODE_B); |
