Clear keyboard message
Posted: Sat Feb 20, 2016 12:17 am
Hello, I have the following code. I use it to open another card on a different stack. I am trying to get rid of the ding sound that occurs when you do ALT+[letter]. I tried to stop pending messages, but it had no effect. Is it possible to cancel the ALT+[letter] action and yet still have it open my other card?
Thanks for any help.
Code: Select all
on rawKeyDown theKeyNumber
switch (theKeyNumber)
case 111 -- o add
if the altKey is down then
go to card "Card 1" of stack "OtherStack"
break
end if
case 113 -- q tube
if the altKey is down then
go to card "Card 2" of stack "OtherStack"
break
end if
end switch
pass rawKeyDown
end rawKeyDown
Thanks for any help.