TL;DR: If you click-drag to either end of a text input's contents in either direction, the opposite direction's arrow key won't jump & end the selection as expected.
It's unclear whether this is platform specific, but it's in the left / right arrow key selection response behavior as described in #932.
Selections created with shift + arrow keys work as expected.
EDIT: Discord discussion with @caffeinepills + further tests suggest the following may be happening:
The cursor falls out of the text box's bounds
The text box lose focus
The selection is left in an indeterminate state
The arrow keys fail to work as expected
Versions affected
Tip of master + anything after #1072
Platform info
Linux, Debian 11.
Python 3.9.2
Gnome on Wayland with XWayland
Reproduction steps
Left Arrow Key
Launch examples/gui/widgets.py
Left-click anywhere before the end of the text
Drag the cursor rightward to the very end, making sure to include the last character
Release the left mouse button
Press the left arrow key
Observe:
The cursor has not moved
The selection has not been deselected
Right Arrow Key
Launch examples/gui/widgets.py
Left-click anywhere after the start of the text
Drag to cursor the very start, making sure to include the first character
Summary
TL;DR: If you click-drag to either end of a text input's contents in either direction, the opposite direction's arrow key won't jump & end the selection as expected.
It's unclear whether this is platform specific, but it's in the left / right arrow key selection response behavior as described in #932.
Selections created with shift + arrow keys work as expected.
EDIT: Discord discussion with @caffeinepills + further tests suggest the following may be happening:
Versions affected
Tip of
master
+ anything after #1072Platform info
Linux, Debian 11. Python 3.9.2 Gnome on Wayland with XWayland
Reproduction steps
Left Arrow Key
examples/gui/widgets.py
Right Arrow Key
examples/gui/widgets.py