1
0
mirror of https://github.com/lvgl/lvgl.git synced 2025-01-14 06:42:58 +08:00

docs(keyboard) add note regarding event handler

This commit is contained in:
embeddedt 2021-06-23 17:32:41 -04:00 committed by GitHub
parent e66b935061
commit 255f7294d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -54,6 +54,13 @@ Keep in mind that using following keywords will have the same effect as with the
The keyboard has a **default event handler** callback called `lv_keyboard_def_event_cb`, which handles the button pressing, map changing, the assigned text area, etc. You can remove it and replace it with a custom event handler if you wish.
```eval_rst
.. note::
In 8.0 and newer, adding an event handler to the keyboard does not remove the default event handler.
This behavior differs from v7, where adding an event handler would always replace the previous one.
```
Learn more about [Events](/overview/event).
## Keys