Add combinations to 'accent_slash' and show in settings

The 'accent_slash' was missing in the extra keys setting.

Allow to type more latin letters "with oblique stroke" or "with stroke"
that visually have an oblique bar, that were not added to 'accent_bar'.
This commit is contained in:
Jules Aguillon 2022-11-05 19:33:46 +01:00
parent 1e067c9863
commit 6a7fbf5e50
3 changed files with 7 additions and 1 deletions

View File

@ -27,6 +27,7 @@
<juloo.keyboard2.ExtraKeyCheckBoxPreference app:index="18"/>
<juloo.keyboard2.ExtraKeyCheckBoxPreference app:index="19"/>
<juloo.keyboard2.ExtraKeyCheckBoxPreference app:index="20"/>
<juloo.keyboard2.ExtraKeyCheckBoxPreference app:index="21"/>
</PreferenceScreen>
</PreferenceCategory>
<PreferenceCategory android:title="@string/pref_category_typing">

View File

@ -29,6 +29,7 @@ public class ExtraKeyCheckBoxPreference extends CheckBoxPreference
"accent_macron",
"accent_ogonek",
"accent_breve",
"accent_slash",
"accent_bar",
"",
"ß",

View File

@ -509,13 +509,17 @@ class KeyModifier
switch (c)
{
case 'a': return 'ⱥ';
case 'b': return '␢';
case 'c': return 'ȼ';
case 'e': return 'ɇ';
case 'g': return 'ꞡ';
case 'k': return 'ꝃ';
case 'l': return 'ł';
case 'n': return 'ꞥ';
case 'o': return 'ø';
case ' ': return '/';
case 'r': return 'ꞧ';
case 's': return 'ꞩ';
case 't': return 'ⱦ';
default: return c;
}
}