| Ticket UUID: | 1233014 | |||
| Title: | Alt / Command mismatch | |||
| Type: | Bug | Version: | obsolete: 8.4.11 | |
| Submitter: | setok | Created on: | 2005-07-05 21:04:23 | |
| Subsystem: | 01. Bindings | Assigned To: | hobbs | |
| Priority: | 5 Medium | Severity: | ||
| Status: | Pending | Last Modified: | 2026-09-23 11:56:57 | |
| Resolution: | Out of Date | Closed By: | ||
| Closed on: | ||||
| Description: |
On OSX the reported keysym for pressing the command key is either Alt_L or Alt_R. However, when using Alt as part of a [bind] specification (f.ex. <Alt-q>), the callback never gets called. Only Command-q will work. | |||
| User Comments: |
serhiy.storchaka added on 2026-09-23 11:56:57:
On current main the Command keys report Meta_L/Meta_R and the Option keys report Alt_L/Alt_R (macosx/tkMacOSXKeyboard.c), while Command sets Mod1Mask and Option sets Mod2Mask (macosx/tkMacOSXKeyEvent.c). This matches doc/bind.n: Alt is Mod2 is Option, so <Alt-q> is expected to fire on Option-q, not on Command-q, and the reported mismatch looks gone. Marking as Out of Date. I have no macOS to test on, so please reopen if it still happens. alastair_davies added on 2005-07-29 15:11:33: Logged In: YES user_id=988604 The mismatch is actually between how the key is identified when it is pressed on its own, and how it is identified when it is used as a modifier. It turns out that the keysym <Option-q> will invoke a callback when q is pressed with either the left or right Alt key held down. | |||
Home
Timeline
Branches
Tags
Forum
Tickets
Download
Wiki