From 8cb1789eebb67ce7750c254ccd0e9dc55d265220 Mon Sep 17 00:00:00 2001 From: Tibor Billes Date: Sun, 1 May 2022 22:51:11 +0200 Subject: [PATCH] Add support for Hungarian layout (#127) --- res/values/arrays.xml | 2 ++ res/xml/method.xml | 1 + res/xml/qwertz_hu.xml | 37 ++++++++++++++++++++++++++++++++ srcs/juloo.keyboard2/Config.java | 1 + 4 files changed, 41 insertions(+) create mode 100644 res/xml/qwertz_hu.xml diff --git a/res/values/arrays.xml b/res/values/arrays.xml index c38664e..15f11e9 100644 --- a/res/values/arrays.xml +++ b/res/values/arrays.xml @@ -11,6 +11,7 @@ qwerty_sv_se ru_jcuken qwertz + qwertz_hu bgph1 dvorak neo2 @@ -26,6 +27,7 @@ QWERTY (Swedish) ЙЦУКЕН (Русский) QWERTZ + QWERTZ (Hungarian) Bulgarian (Phonetic Traditional) Dvorak Neo 2 diff --git a/res/xml/method.xml b/res/xml/method.xml index 85685d5..d9baf54 100644 --- a/res/xml/method.xml +++ b/res/xml/method.xml @@ -6,6 +6,7 @@ + diff --git a/res/xml/qwertz_hu.xml b/res/xml/qwertz_hu.xml new file mode 100644 index 0000000..50be3d0 --- /dev/null +++ b/res/xml/qwertz_hu.xml @@ -0,0 +1,37 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/srcs/juloo.keyboard2/Config.java b/srcs/juloo.keyboard2/Config.java index f6e40dc..fd0c3ec 100644 --- a/srcs/juloo.keyboard2/Config.java +++ b/srcs/juloo.keyboard2/Config.java @@ -226,6 +226,7 @@ final class Config case "qwerty": return R.xml.qwerty; case "qwerty_sv_se": return R.xml.qwerty_sv_se; case "qwertz": return R.xml.qwertz; + case "qwertz_hu": return R.xml.qwertz_hu; case "ru_jcuken": return R.xml.local_ru_jcuken; case "neo2": return R.xml.neo2; default: return R.xml.qwerty; // The config might store an invalid layout, don't crash