diff options
| author | juloo | 2015-08-18 01:33:50 +0200 |
|---|---|---|
| committer | juloo | 2015-08-18 01:33:50 +0200 |
| commit | 373f1b11f17d2f1ea8832085e35cf2e59d7d55d2 (patch) | |
| tree | 4f4a2153ebd8048e2cd1b04181a9395aa190bbbd /srcs/juloo.keyboard2 | |
| parent | d81509d7ec2336c34326a2d19109e4b78cccd97c (diff) | |
| download | unexpected-keyboard-373f1b11f17d2f1ea8832085e35cf2e59d7d55d2.tar.gz unexpected-keyboard-373f1b11f17d2f1ea8832085e35cf2e59d7d55d2.zip | |
Add trema accent + Add accents to azerty
Diffstat (limited to 'srcs/juloo.keyboard2')
| -rw-r--r-- | srcs/juloo.keyboard2/KeyValue.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/srcs/juloo.keyboard2/KeyValue.java b/srcs/juloo.keyboard2/KeyValue.java index da0d4a6..ecda632 100644 --- a/srcs/juloo.keyboard2/KeyValue.java +++ b/srcs/juloo.keyboard2/KeyValue.java @@ -23,6 +23,7 @@ class KeyValue public static final int FLAG_ACCENT3 = (1 << 18); public static final int FLAG_ACCENT4 = (1 << 19); public static final int FLAG_ACCENT5 = (1 << 20); + public static final int FLAG_ACCENT6 = (1 << 21); private String _name; private String _symbol; @@ -59,6 +60,8 @@ class KeyValue c = (char)KeyCharacterMap.getDeadChar('\u02DC', (int)c); if ((flags & FLAG_ACCENT5) != 0) c = (char)KeyCharacterMap.getDeadChar('\u00B8', (int)c); + if ((flags & FLAG_ACCENT6) != 0) + c = (char)KeyCharacterMap.getDeadChar('\u00A8', (int)c); if (c != 0) return (c); } @@ -111,6 +114,7 @@ class KeyValue new KeyValue("accent3", "\u02C6", CHAR_NONE, EVENT_NONE, FLAG_KEEP_ON | FLAG_NOCHAR | FLAG_ACCENT3); new KeyValue("accent4", "\u02DC", CHAR_NONE, EVENT_NONE, FLAG_KEEP_ON | FLAG_NOCHAR | FLAG_ACCENT4); new KeyValue("accent5", "\u00B8", CHAR_NONE, EVENT_NONE, FLAG_KEEP_ON | FLAG_NOCHAR | FLAG_ACCENT5); + new KeyValue("accent6", "\u00A8", CHAR_NONE, EVENT_NONE, FLAG_KEEP_ON | FLAG_NOCHAR | FLAG_ACCENT6); new KeyValue("a", null, 'a', KeyEvent.KEYCODE_A, 0); new KeyValue("b", null, 'b', KeyEvent.KEYCODE_B, 0); |
