diff options
| author | Jules Aguillon | 2022-02-19 21:48:48 +0100 |
|---|---|---|
| committer | Jules Aguillon | 2022-02-19 21:48:48 +0100 |
| commit | 632a9ac590b92a52afe57f1f0aaaa919f9dcebdc (patch) | |
| tree | 71198a17703808e738456652fa820c8bcbdf31c1 /srcs/juloo.keyboard2/KeyValue.java | |
| parent | d73be58c1a49fdbea2cc374edfe893f63424c89d (diff) | |
| download | unexpected-keyboard-632a9ac590b92a52afe57f1f0aaaa919f9dcebdc.tar.gz unexpected-keyboard-632a9ac590b92a52afe57f1f0aaaa919f9dcebdc.zip | |
Localize € and £
Show these characters only for users that have the corresponding locale
installed (a supported eu language for €, en-GB for £).
Add these characters to most layouts.
Diffstat (limited to 'srcs/juloo.keyboard2/KeyValue.java')
| -rw-r--r-- | srcs/juloo.keyboard2/KeyValue.java | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/srcs/juloo.keyboard2/KeyValue.java b/srcs/juloo.keyboard2/KeyValue.java index fa5b4a6..8ce3cbe 100644 --- a/srcs/juloo.keyboard2/KeyValue.java +++ b/srcs/juloo.keyboard2/KeyValue.java @@ -56,8 +56,11 @@ class KeyValue // Language specific keys public static final int FLAG_LANG_SZLIG = (1 << 25); + public static final int FLAG_LANG_EURO = (1 << 29); + public static final int FLAG_LANG_POUND = (1 << 30); - public static final int FLAGS_LANGS = FLAG_LANG_SZLIG; + public static final int FLAGS_LANGS = FLAG_LANG_SZLIG | FLAG_LANG_EURO | + FLAG_LANG_POUND; public static final int FLAGS_NOT_HIDDEN_ACCENTS = FLAG_ACCENT_SUPERSCRIPT | FLAG_ACCENT_SUBSCRIPT | FLAG_ACCENT_ORDINAL; @@ -148,10 +151,6 @@ class KeyValue static { - String chars = "<>&\"_°~{|^}$*:!£%µ?.§€"; - for (int i = 0; i < chars.length(); i++) - addCharKey(chars.charAt(i), EVENT_NONE); - addModifierKey("shift", "\uE808", FLAG_LOCK | FLAG_SHIFT | FLAG_KEY_FONT); addModifierKey("ctrl", "Ctrl", FLAG_CTRL); addModifierKey("alt", "Alt", FLAG_ALT); @@ -224,6 +223,8 @@ class KeyValue addCharKey('(', KeyEvent.KEYCODE_NUMPAD_LEFT_PAREN); addCharKey(')', KeyEvent.KEYCODE_NUMPAD_RIGHT_PAREN); addCharKey('ß', EVENT_NONE, FLAG_LANG_SZLIG); + addCharKey('€', EVENT_NONE, FLAG_LANG_EURO); + addCharKey('£', EVENT_NONE, FLAG_LANG_POUND); addSpecialKey("config", "⛭", EVENT_CONFIG); addSpecialKey("switch_text", "ABC", EVENT_SWITCH_TEXT); |
