On Fri, 09 Feb 2018 15:44:44 GMT, Luís Marques wrote:

Any ideas?

From what I can tell, despite the misleading presence of the method setFocusOnClick, you have to manualy do a grabFocus on the click event handler of the DrawingArea widget. Also, you have to intercept the keyboard events to not lose focus after a key click, and whatever else that might influence the focus. Lame.