Bug 732160 - menu activation with alt-somekey makes tools stay...
...in "alt-pressed" mode Menu activation doesn't cause a focus-out becaus menu keyboard grabbing is implemented with a simple gtk_grab_add() (the menu popup never gets the focus). Therefore, the canvas never gets a focus-out event and the pressed modifiers are stuck. Fixed by connecting to "grab-notify" on the canvas, and artificially releasing all modifiers when the canvas is shadowed by a grab.
Showing with 43 additions and 1 deletion