Hi list

I wanted to detect ctrl+alt+letter keypress

putting this code in the form_key event detects the ctl+alt

Dim ctlDown as boolean
Dim altDown as boolean

   Try CtrlDown = Key.Control
   Try altDown = Key.alt

   If CtrlDown And altDown Then  'works ok


    'but adding this:
      Select Case Key.Code
           case 66 'b
                'do something here.
     end select 
 end if
gives this error message.


QAction::eventFilter: Ambiguous shortcut overload: Ctrl+Alt+B

Any hints as to what I'm doing wrong?

Regards

Richard

------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to