abouttreesummaryrefslogcommitdiff
path: root/srcs/juloo.keyboard2/ExtraKeysPreference.java
AgeCommit message (Collapse)AuthorFilesLines
2023-08-06Describe editing keysJules Aguillon1-0/+10
The new strings are used in the "Add keys to the keyboard" option.
2023-08-05Translatable key descriptionsJules Aguillon1-3/+19
Key descriptions are shown in the "extra keys" option and can now be translated.
2023-07-29Add dagger, double dagger, section mark, and pilcrow as extra keys on ↵Ben Slusky1-0/+2
QWERTY-like layouts (#410) * Add section mark as an extra key in QWERTY-like layouts that don't have it already * Add dagger (also double dagger) as an extra key in QWERTY-like layouts
2023-07-19Add custom extra keys preferenceJules Aguillon1-2/+3
This is a new section in the extra keys option that allows to enter arbitrary strings which are then added to the keyboard. A new string is needed for the title of the section, Android's icons and strings are used as much as possible to avoid adding more strings. Keys are stored in the preferences as a JSON array of strings.
2023-07-19Refactor: Use a PreferenceCategory for extra keysJules Aguillon1-4/+2
This removes the need for a layout definition and adds a title before the prefs. It's a prerequise for the custom keys preference.
2023-07-09Refactor: Don't define extra keys in xmlJules Aguillon1-0/+136
The current approach is hard to maintain, for example the last key "autofill" was not displayed. This implements a PreferenceGroup that contains the check boxes for every extra keys without involving listing the preferences in settings.xml. A custom layout is used to remove the 'title' text view. The list of extra keys is moved into the new class. 'ExtraKeyCheckBoxPreference' becomes a nested class.