update widget docs

develop
myk002 2022-07-16 22:23:22 -07:00
parent 805456e82b
commit f354200728
No known key found for this signature in database
GPG Key ID: 8A39CA0FA0C16E78
1 changed files with 7 additions and 6 deletions

@ -3904,8 +3904,9 @@ and then call the ``on_submit`` callback. Pressing the Escape key will also
release keyboard focus, but first it will restore the text that was displayed
before the ``EditField`` gained focus and then call the ``on_change`` callback.
The ``EditField`` cursor can be moved to where you want to insert/remove text.
The following cursor movement keys are recognized:
The ``EditField`` cursor can be moved to where you want to insert/remove text
by clicking the mouse at that position. In addition, the following cursor
movement keys are recognized:
- Left/Right arrow: move the cursor one character to the left or right.
- Ctrl-Left/Right arrow: move the cursor one word to the left or right.
@ -4135,10 +4136,10 @@ It has the following attributes:
:on_select: Selection change callback; called as ``on_select(index,choice)``.
This is also called with *nil* arguments if ``setChoices`` is called
with an empty list.
:on_submit: Enter key callback; if specified, the list reacts to the key
and calls it as ``on_submit(index,choice)``.
:on_submit2: Shift-Enter key callback; if specified, the list reacts to the key
and calls it as ``on_submit2(index,choice)``.
:on_submit: Enter key or mouse click callback; if specified, the list calls it
as ``on_submit(index,choice)``.
:on_submit2: Shift-Enter key callback; if specified, the list calls it as
``on_submit2(index,choice)``.
:row_height: Height of every row in text lines.
:icon_width: If not *nil*, the specified number of character columns
are reserved to the left of the list item for the icons.