Le 27/11/2012 22:13, Christian Schmitz a écrit :
> On 27.11.2012, at 22:04, fqd <[email protected]> wrote:
>
>> However, how can I translate this :
>> If NSCommandKeyMask = 1 << 20
> 1 shift left 20 is 1048576
>
> Greetings
> Christian
>
I ended with this code :
if e.type = NSEventMBS.NSKeyDown then
Dim ModFlag as integer = e.modifierFlags
Dim Test as integer = Bitwise.ShiftRight( ModFlag,
NSEventMBS.NSCommandKeyMask)
if Test = 0 then // It's a Command key with something
.....
What do you think ?
Is it correct ?
It seems to handle every combinaison of keys, but I'm not sure....
Thanks,
Fred
_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
[email protected]
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info