From dad5f57a036e3f0ad7278ccee5bd248192cbbad2 Mon Sep 17 00:00:00 2001 From: Jules Aguillon Date: Sat, 29 Jul 2023 18:37:06 +0200 Subject: Allow more than 2 layouts The two layout selection options are replaced by a ListGroupPreference that allow to enter an arbitrary amount of layouts. The "switch_second" and "switch_second_back" keys are replaced by "switch_forward" and "switch_backward", which allow to cycle through the selected layouts in two directions. Layouts are changed to place these two key on the space bar. The backward key is not shown if there's only two layouts. --- res/values/layouts.xml | 4 ++-- res/values/strings.xml | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'res/values') diff --git a/res/values/layouts.xml b/res/values/layouts.xml index 3a972be..4c9779f 100644 --- a/res/values/layouts.xml +++ b/res/values/layouts.xml @@ -2,7 +2,7 @@ - none + system latn_qwerty_us latn_colemak latn_dvorak @@ -43,7 +43,7 @@ custom - None + @string/pref_layout_e_system QWERTY (US) Colemak Dvorak diff --git a/res/values/strings.xml b/res/values/strings.xml index 6a280f5..a3e50d3 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -10,9 +10,10 @@ Adjust keyboard background opacity Adjust key opacity Adjust pressed key opacity - Change keyboard layout System settings Custom layout + Add an alternate layout + Layout %1$d: %2$s Accents Show accents for all installed languages Only show accents for the selected language -- cgit v1.2.3