From fec3f109c970901db31e1354b2cd3fc0015964e8 Mon Sep 17 00:00:00 2001 From: Jules Aguillon Date: Sun, 24 Apr 2022 00:34:26 +0200 Subject: Add support for Lithuanian Requires two new diacritics: ogonek and dot_above. The new accents are also added to the Latvian layout as the two language can be close but not to the other localized layouts. A new mechanism is needed to reproducibly add extra keys to layouts without manual placement. --- srcs/juloo.keyboard2/KeyModifier.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'srcs/juloo.keyboard2/KeyModifier.java') diff --git a/srcs/juloo.keyboard2/KeyModifier.java b/srcs/juloo.keyboard2/KeyModifier.java index 39fc5a7..73ec84e 100644 --- a/srcs/juloo.keyboard2/KeyModifier.java +++ b/srcs/juloo.keyboard2/KeyModifier.java @@ -76,6 +76,10 @@ class KeyModifier return (char)KeyCharacterMap.getDeadChar('\u02DA', c); case KeyValue.FLAG_ACCENT_MACRON: return (char)KeyCharacterMap.getDeadChar('\u00AF', c); + case KeyValue.FLAG_ACCENT_OGONEK: + return (char)KeyCharacterMap.getDeadChar('\u02DB', c); + case KeyValue.FLAG_ACCENT_DOT_ABOVE: + return (char)KeyCharacterMap.getDeadChar('\u02D9', c); case KeyValue.FLAG_ACCENT_ORDINAL: switch (c) { -- cgit v1.2.3