Page MenuHome

Fix Alt key glitch on Unity desktop
Closed, ResolvedPublicPATCH

Description

Patch for: T33831

This patch adds handler of KeymapNotify event that is generated immediately after FocusIn and EnterNotify events. Using this event's information, modifier key states will be corrected.

Event Timeline

Forgot to mention that the handler cannot be included in processEvent() because KeymapNotify event has no valid window information.

committed r54199.

Made own minor changes
- null check window
- fixed off by one error, (shouldn't be <= 8).
- ifdef'd so we can easy identify this as unity workaround (perhaps it wont be needed in future).

Campbell Barton (campbellbarton) changed the task status from Unknown Status to Resolved.Jan 30 2013, 5:13 AM

Thanks for the commit, and sorry for the mistake ("<= 8").

This hack breaks layout switching via ibus on Fedora, because the meaning of Mod1-Mod5 is not specified, and Mod2 is used for Num Lock instead of Super like this assumes. Thus sometimes after the layout switch Blender thinks Super is stuck pressed.