feat(keyboard): add user-defined modes (#2651)

As discussed in https://forum.lvgl.io/t/localized-keyboard-layouts/6734,
this adds further `..._USER_N` keyboard modes that can be used to
implemented more keyboard layouts for locales that need more than 4
layers.
This commit is contained in:
Johannes Marbach
2021-10-11 14:46:07 +02:00
committed by GitHub
parent 3b6a05e253
commit 7658f98e86
4 changed files with 17 additions and 3 deletions

View File

@@ -40,6 +40,7 @@
- feat(btnmatrix/keyboard): add option to show popovers on button press
- fix(types) LV_FORMAT_ATTRIBUTE now works with gnu version greater than 4.4
- feat(event) add add LV_EVENT_CHILD_CREATED/DELETED
- feat(keyboard): add user-defined modes
## v8.0.2 (16.07.2021)
- fix(theme) improve button focus of keyboard

View File

@@ -22,7 +22,8 @@ The Keyboards have the following modes:
- `LV_KEYBOARD_MODE_TEXT_LOWER` Display lower case letters
- `LV_KEYBOARD_MODE_TEXT_UPPER` Display upper case letters
- `LV_KEYBOARD_MODE_TEXT_SPECIAL` Display special characters
- `LV_KEYBOARD_MODE_NUMBER` Display numbers, +/- sign, and decimal dot.
- `LV_KEYBOARD_MODE_NUMBER` Display numbers, +/- sign, and decimal dot
- `LV_KEYBOARD_MODE_USER_1` through `LV_KEYBOARD_MODE_USER_4` User-defined modes.
The `TEXT` modes' layout contains buttons to change mode.