From 7aa241b10a5af1e32c5c1e8e8a8cb8d5685a674a Mon Sep 17 00:00:00 2001 From: Jules Aguillon Date: Sun, 13 Mar 2022 00:39:41 +0100 Subject: [PATCH] Make superscript and subscript modifiers lockable --- res/xml/settings.xml | 2 ++ srcs/juloo.keyboard2/Config.java | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) 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 @@ + + 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", ""));