Hi,
So I have a bunch of buttons created and want to create shortcuts for each of them. I know I could edit the script with if/then statements to determine whether or not certain keys are down, but I saw that we can create shortcuts in the property inspector, instead. I did that, selecting command and shift and putting 'n' as the accelkey, yet nothing happens. Am I missing something?
Thank you,
Laurel
Shortcuts-property inspector
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Re: Shortcuts-property inspector
Hi Laurel,
Are you using Mac? I never could get this to work on a Mac, but it works fine on Windows.
Kind regards,
Mark
Are you using Mac? I never could get this to work on a Mac, but it works fine on Windows.
Kind regards,
Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
Re: Shortcuts-property inspector
Bummer. I am indeed using a mac.
I just tried to do it the long way (if the commandkey is down then, etc.) and this seems not to work either...any ideas?
-Thanks
I just tried to do it the long way (if the commandkey is down then, etc.) and this seems not to work either...any ideas?
-Thanks
Re: Shortcuts-property inspector
Hi,
I don't know what you tried exactly, but you could put this into the card or stack script:
This script works with a button with name "B".
Kind regards,
Mark
I don't know what you tried exactly, but you could put this into the card or stack script:
Code: Select all
on commandKeyDown theKey
if theKey is "B" and the shiftKey is down then
send "mouseUp" to btn "B"
end if
end commandKeyDown
Kind regards,
Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
Re: Shortcuts-property inspector
Well now I just feel dumb...worked perfectly.
Thanks much!
-Laurel
Thanks much!
-Laurel