diff options
| author | Jules Aguillon | 2022-05-29 17:31:12 +0200 |
|---|---|---|
| committer | Jules Aguillon | 2022-05-29 17:31:12 +0200 |
| commit | 815025aaa99851840d4bc8b2a0dfff4caa6a44f3 (patch) | |
| tree | aa2aec74f88ad26302071882c9838ee0cb6c7116 | |
| parent | d9f2fdf8bf9c300573bea98e074dd7c68589e9fd (diff) | |
| download | unexpected-keyboard-815025aaa99851840d4bc8b2a0dfff4caa6a44f3.tar.gz unexpected-keyboard-815025aaa99851840d4bc8b2a0dfff4caa6a44f3.zip | |
Add layout: QWERTY (Hungarian)
| -rw-r--r-- | res/values/arrays.xml | 2 | ||||
| -rw-r--r-- | res/xml/qwerty_hu.xml | 37 | ||||
| -rw-r--r-- | srcs/juloo.keyboard2/Config.java | 5 |
3 files changed, 42 insertions, 2 deletions
diff --git a/res/values/arrays.xml b/res/values/arrays.xml index 15f11e9..91c2270 100644 --- a/res/values/arrays.xml +++ b/res/values/arrays.xml @@ -9,6 +9,7 @@ <item>qwerty_ko</item> <item>qwerty_lv</item> <item>qwerty_sv_se</item> + <item>qwerty_hu</item> <item>ru_jcuken</item> <item>qwertz</item> <item>qwertz_hu</item> @@ -25,6 +26,7 @@ <item>QWERTY (Korean)</item> <item>QWERTY (Latvian)</item> <item>QWERTY (Swedish)</item> + <item>QWERTY (Hungarian)</item> <item>ЙЦУКЕН (Русский)</item> <item>QWERTZ</item> <item>QWERTZ (Hungarian)</item> diff --git a/res/xml/qwerty_hu.xml b/res/xml/qwerty_hu.xml new file mode 100644 index 0000000..325ba31 --- /dev/null +++ b/res/xml/qwerty_hu.xml @@ -0,0 +1,37 @@ +<?xml version="1.0" encoding="utf-8"?> +<keyboard> + <row> + <key key0="q" key2="0" key4="esc"/> + <key key0="w" key1="'" key2="1" key4="|"/> + <key key0="e" key1=""" key2="2" key4="é"/> + <key key0="r" key2="3" key4="^"/> + <key key0="t" key1="!" key2="4" key4="f11_placeholder"/> + <key key0="y" key1="%" key2="5" key3="°" key4="f12_placeholder"/> + <key key0="u" key1="ű" key2="6" key3="ü" key4="ú"/> + <key key0="i" key1="=" key2="7" key3="`" key4="í"/> + <key key0="o" key1="ő" key2="8" key3="ö" key4="ó"/> + <key key0="p" key1="9"/> + </row> + <row> + <key shift="0.5" key0="a" key1="tab" key4="á"/> + <key key0="s" key1="§" key2="\\" key3="[" key4="]"/> + <key key0="d" key3="{" key4="}"/> + <key key0="f" key3="+"/> + <key key0="g" key3="*"/> + <key key0="h"/> + <key key0="j"/> + <key key0="k" key3="(" key4=")"/> + <key key0="l" key3="/"/> + </row> + <row> + <key width="1.5" key0="shift"/> + <key key0="z" key3="<" key4=">"/> + <key key0="x" key4="\#"/> + <key key0="c" key4="&"/> + <key key0="v" key4="\@"/> + <key key0="b" key1="\?" key3="," key4=";"/> + <key key0="n" key1=":" key3="."/> + <key key0="m" key1="_" key3="-"/> + <key width="1.5" key0="backspace" key2="delete"/> + </row> +</keyboard> diff --git a/srcs/juloo.keyboard2/Config.java b/srcs/juloo.keyboard2/Config.java index 199fe35..50d8a11 100644 --- a/srcs/juloo.keyboard2/Config.java +++ b/srcs/juloo.keyboard2/Config.java @@ -235,16 +235,17 @@ final class Config case "azerty": return R.xml.azerty; case "bgph1": return R.xml.local_bgph1; case "dvorak": return R.xml.dvorak; + case "neo2": return R.xml.neo2; case "qwerty_es": return R.xml.qwerty_es; + case "qwerty_hu": return R.xml.qwerty_hu; case "qwerty_ko": return R.xml.qwerty_ko; case "qwerty_lv": return R.xml.qwerty_lv; case "qwerty_pt": return R.xml.qwerty_pt; 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 "qwertz": return R.xml.qwertz; 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 } } |
