diff options
| -rw-r--r-- | res/xml/settings.xml | 2 | ||||
| -rw-r--r-- | srcs/juloo.keyboard2/Config.java | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/res/xml/settings.xml b/res/xml/settings.xml index 9a1bcae..e815667 100644 --- a/res/xml/settings.xml +++ b/res/xml/settings.xml @@ -15,6 +15,8 @@ <CheckBoxPreference android:key="lockable_alt" android:title="Alt" android:defaultValue="false"/> <CheckBoxPreference android:key="lockable_fn" android:title="Fn" android:defaultValue="false"/> <CheckBoxPreference android:key="lockable_meta" android:title="Meta" android:defaultValue="false"/> + <CheckBoxPreference android:key="lockable_sup" android:title="Sup" android:defaultValue="false"/> + <CheckBoxPreference android:key="lockable_sub" android:title="Sub" android:defaultValue="false"/> </PreferenceScreen> </PreferenceCategory> <PreferenceCategory android:title="@string/pref_category_vibrate"> diff --git a/srcs/juloo.keyboard2/Config.java b/srcs/juloo.keyboard2/Config.java index 167c1dc..0c92c76 100644 --- a/srcs/juloo.keyboard2/Config.java +++ b/srcs/juloo.keyboard2/Config.java @@ -122,7 +122,9 @@ final class Config | (prefs.getBoolean("lockable_ctrl", false) ? KeyValue.FLAG_CTRL : 0) | (prefs.getBoolean("lockable_alt", false) ? KeyValue.FLAG_ALT : 0) | (prefs.getBoolean("lockable_fn", false) ? KeyValue.FLAG_FN : 0) - | (prefs.getBoolean("lockable_meta", false) ? KeyValue.FLAG_META : 0); + | (prefs.getBoolean("lockable_meta", false) ? KeyValue.FLAG_META : 0) + | (prefs.getBoolean("lockable_sup", false) ? KeyValue.FLAG_ACCENT_SUPERSCRIPT : 0) + | (prefs.getBoolean("lockable_sub", false) ? KeyValue.FLAG_ACCENT_SUBSCRIPT : 0); characterSize = prefs.getFloat("character_size", characterSize); accents = Integer.valueOf(prefs.getString("accents", "1")); theme = getThemeId(res, prefs.getString("theme", "")); |
