Trying to grab a hotkey that is already grabbed fails silently
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
unity-2d |
Fix Released
|
Medium
|
Ugo Riboni |
Bug Description
While implementing keyboard navigation in the launcher, I was trying to register a Hotkey watch for Alt+F1 to give the keyboard focus to the launcher. But the slot I connected to the pressed() signal would never be triggered.
We later discovered that this was because the Alt+F1 combination was already grabbed by metacity. Trying to grab a key combination that is already grabbed normally results in a BadAccess X error, but this error was swallowed by the error handler set up in Unity2dPlugin:
/* FIXME: This should be done more properly, it's just an hack this way.
We should silence only the errors that we know we can produce.
We could probably also learn something from gdk-error-
See: http://
*/
Related branches
Changed in unity-2d: | |
assignee: | nobody → Ugo Riboni (uriboni) |
Changed in unity-2d: | |
importance: | Undecided → Wishlist |
status: | New → Confirmed |
importance: | Wishlist → Medium |
Changed in unity-2d: | |
status: | Fix Committed → Fix Released |
This was fixed at revision 462. Trying to grab a key that is already grabbed now issues a warning.