[Gambas-user] Ambiguous shortcut overload
richard terry
rterry at ...1823...
Sun Feb 5 08:04:55 CET 2012
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
More information about the User
mailing list