> > > It works as expected with gb.qt4. > > > > > > That Key.Code is the code of the CTRL key. You receive it when the CTRL > > > key > > > > > > is pressed, not when the R key is pressed. > > > > > > Note that gb.gtk makes a difference between the Key.Code of 'R' and > > > 'r', whereas it should not. I will try to fix that. > > > > > > Regards, > > > > Sorry to be dumb, then how can I dectect Crl R? > > I think I understand the problem: apparently keypress events are lost when > they are used by a menu shortcut. I don't see them anymore, even in the > event loop. > > No idea why, it didn't work like that before, so I think Qt4 has changed > something recently about that. > > I will investigate...
OK. After having read the Qt source code, I can confirm that now, when a shortcut is defined, it is impossible for the gb.qt4 component to see the corresponding keypress event. I understand the logical behind that, but unfortunately that means I don't have the same behaviour now between gb.qt4 and gb.gtk. And I don't know if I can make gb.gtk behave like that! As for you, just don't want to catch CTRL+R whereas you have a menu shortcut using that key. Regards, -- Benoît Minisini ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today. http://p.sf.net/sfu/beautyoftheweb _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user