Tk Library Source Code

View Ticket
Login
Ticket UUID: c023fe86313025a492b5bff5c377160143f01728
Title: text selection bindings
Type: Bug Version: 8.6.4
Submitter: anonymous Created on: 2016-01-10 18:55:34
Subsystem: tklib :: widget :: dateentry Assigned To: aku
Priority: 5 Medium Severity: Important
Status: Closed Last Modified: 2022-05-10 12:19:59
Resolution: Not Applicable Here Closed By: aku
    Closed on: 2022-05-10 12:19:59
Description:
extending the text selection using keyboard (Shift + Left|Right)
works as expected only if the selection extends
to the right of the initial insertion point

Shift + Right extends the selection to the right
and subsequent Shift + Left reduces the rightmost boundary

Shift + Left extends the selection to the left
but subsequent Shift + Right extends the selection to the right
instead of reducing the leftmost boundary

I have only tested this in ttk::entry
User Comments: aku added on 2022-05-10 12:19:59:
AFAIK this is inherited behaviour, from ttk::entry.

The internal custom bindings for the menu part are added to the bindtags of the widget, and do not override anything for the entry part.

I recommend to discuss this on the tcl-core mailing list with the maintainers for Tk and ttk::entry, i.e. current vs desired behaviour.