Tk Source Code

Check-in [b052917b]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Fix [701d8f8953]: <Alt-key> bindings and %K do not work with a non-Latin keyboard layout on X11

TkpGetKeySym() used the keymap of the first XKB group only, so with input methods off %K was the Latin letter of the key whatever the current layout. Now the group of the event is used.

With a non-Latin layout, bindings like <Alt-q> never matched. Now, if Control or Alt is down, the keysym of the key in a Latin layout is used, as other X11 toolkits do. Typed characters (%A) are not affected.

Downloads: See separate download page
Timelines: family | ancestors | descendants | both | x11-nonlatin-shortcuts
Files: files | file ages | folders
SHA3-256: b052917bd2940c5415d71dce0d3bd6432f6d4eab5747ac3ff10e2f690cd1d66b
User & Date: serhiy.storchaka 2026-09-17 16:21:21.816
Context
2026-09-21
09:05
Merge main check-in: 7f9f8c72 user: serhiy.storchaka tags: x11-nonlatin-shortcuts
2026-09-17
16:21
Fix [701d8f8953]: <Alt-key> bindings and %K do not work with a non-Latin keyboard layout on X11

TkpGetKeySym() used the keymap of the first XKB group only, so with input methods off %K was the Latin letter of the key whatever the current layout. Now the group of the event is used.

With a non-Latin layout, bindings like <Alt-q> never matched. Now, if Control or Alt is down, the keysym of the key in a Latin layout is used, as other X11 toolkits do. Typed characters (%A) are not affected. check-in: b052917b user: serhiy.storchaka tags: x11-nonlatin-shortcuts

07:04
Small bugfix: justify "" should always behave like justify "left" check-in: 2d75f9f6 user: jan.nijtmans tags: trunk, main
Changes
Unified Diff Side-by-Side Diff Patch
Changes to tests/event.test.
Changes to unix/tkUnixKey.c.