Ticket UUID: | b3a1b9852de7859caa41c050c5eb23190bcceb7c | |||
Title: | Enter key works differently in Windows and Linux | |||
Type: | Bug | Version: | 8.6 | |
Submitter: | anonymous | Created on: | 2024-06-27 14:17:22 | |
Subsystem: | 99. Other | Assigned To: | jan.nijtmans | |
Priority: | 5 Medium | Severity: | Minor | |
Status: | Open | Last Modified: | 2024-12-10 15:41:52 | |
Resolution: | None | Closed By: | nobody | |
Closed on: | ||||
Description: |
Enter key (KP_Enter event) on treeview widget:
In Windows, seemingly, the behavior is better. | |||
User Comments: |
jan.nijtmans added on 2024-12-10 15:41:52:
As described in TIP #158, the current situation is: bind ... <Return> "pressReturn" bind ... <KP_Enter> "pressEnter" ; # only useful on Unix bind ... <Extended-Return> "pressEnter" ; # only useful on Windows Idea (to be TIP'ed): What if in Tk 9.1, binding "<KP_Enter>" will automatically be translated to "<Extended-Return>" (for compatibility with 9.0). On Windows, no further changes need to be made. On UNIX, when the KP_Enter is received by the keyboard, it will be translated to Extended-Return. That means that the "Return" binding will fire (if no separate "Extended-Return" binding is registered). This way, the behavior on UNIX will become the same as the current behavior on Windows. jan.nijtmans added on 2024-12-10 13:09:46: See: TIP #158 Dup of [b3a1b9852d] jan.nijtmans added on 2024-12-10 13:08:34: See: [https://core.tcl-lang.org/tips/doc/trunk/tip/158.md|TIP #158] Dup of [3119824] anonymous added on 2024-07-06 12:01:30: The same problem with other choosing widgets, e.g. with buttons. I.e. it's a problem of all Linux Tk widgets that don't handle KP_Enter as Return key, while Windows version and other Linux GUI libraries do handle it in the same manner as Return key. jan.nijtmans added on 2024-06-30 17:58:52: Does [aa26b81418|this] work better? |