Page 1 of 1

[SOLVED] [CanvasGadget] Focus Lost After CONTROL press

Posted: Mon Oct 01, 2012 11:24 am
by grabiller
Hi,

Having implemented a text input widget with CanvasGadget, I've a little issue on Linux (Ubuntu 12.04.1):

Once the CanvasGadget has focus, if I press CONTROL (+X/+C/+V to deal with clipboard) I immediately loose focus, the CONTROL key being intercepted by the desktop.

Do you know the trick for the CanvasGadget to keep focus even after a CONTROL press ?

Thanks,
Guy.

Re: [CanvasGadget] Focus Lost After CONTROL press

Posted: Mon Oct 01, 2012 1:26 pm
by idle
yes I think I noticed that too, I will have look in the morning

Re: [CanvasGadget] Focus Lost After CONTROL press

Posted: Mon Oct 01, 2012 2:28 pm
by grabiller
I solved the problem, Fred gave me a hint on the french forum.

I just had to setup keyboard shortcuts with AddKeyboardShortcut(), now it works perfectly.

Here is the result:
http://www.raafal.org/download/raafal.x ... nux.tar.gz

And on Windows & MacOSX to compare:
http://www.raafal.org/download/raafal.x ... indows.zip
http://www.raafal.org/download/raafal.x ... macosx.zip
(I still have a mysterious issue on Mac with one DrawImage though.. the 'Subscription' disabled button)