[SOLVED] [CanvasGadget] Focus Lost After CONTROL press

Linux specific forum
User avatar
grabiller
Enthusiast
Enthusiast
Posts: 309
Joined: Wed Jun 01, 2011 9:38 am
Location: France - 89220 Rogny-Les-Septs-Ecluses
Contact:

[SOLVED] [CanvasGadget] Focus Lost After CONTROL press

Post 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.
Last edited by grabiller on Mon Oct 01, 2012 2:29 pm, edited 1 time in total.
guy rabiller | radfac founder / ceo | raafal.org
User avatar
idle
Always Here
Always Here
Posts: 6026
Joined: Fri Sep 21, 2007 5:52 am
Location: New Zealand

Re: [CanvasGadget] Focus Lost After CONTROL press

Post by idle »

yes I think I noticed that too, I will have look in the morning
Windows 11, Manjaro, Raspberry Pi OS
Image
User avatar
grabiller
Enthusiast
Enthusiast
Posts: 309
Joined: Wed Jun 01, 2011 9:38 am
Location: France - 89220 Rogny-Les-Septs-Ecluses
Contact:

Re: [CanvasGadget] Focus Lost After CONTROL press

Post 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)
guy rabiller | radfac founder / ceo | raafal.org
Post Reply