Re: Assigning a keyboard shortcut to a button
Posted: Sat Feb 12, 2022 4:41 pm
Questions and answers about the LiveCode platform.
https://forums.livecode.com/
Thanks Jacque, have just seen this, I'll give this a try... Regards, Glennjacque wrote: Fri Feb 11, 2022 11:03 pm Now that I'm at the computer I see the problem. Here's a revised script that should account for either one of the alt keys.Code: Select all
on rawkeyDown pKey put (65513 is in the keysdown or 65514 is in the keysdown) into tAltKeyTrue if tAltKeyTrue and pKey = 115 then answer "alt" else pass rawkeydown end if end rawkeyDown
Hi Jacque, just tried your code.... I think it must be my set up as it again only fires when the 'Alt Gr' key is down!!glenn9 wrote: Mon Feb 14, 2022 2:26 pmThanks Jacque, have just seen this, I'll give this a try... Regards, Glennjacque wrote: Fri Feb 11, 2022 11:03 pm Now that I'm at the computer I see the problem. Here's a revised script that should account for either one of the alt keys.Code: Select all
on rawkeyDown pKey put (65513 is in the keysdown or 65514 is in the keysdown) into tAltKeyTrue if tAltKeyTrue and pKey = 115 then answer "alt" else pass rawkeydown end if end rawkeyDown