Creating shortcuts for IDE not working on Mac

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
pink
Posts: 285
Joined: Wed Mar 12, 2014 6:18 pm

Creating shortcuts for IDE not working on Mac

Post by pink »

Not sure if anyone can help me with this, I wanted to add keyboard shortcuts to edit card script and stack script.

Using the MacOS Keyboard/Shortcuts preferences, I added shortcuts for those two menu items.

Switching back to Livecode, the keyboard shortcuts now show up when I pull down the Object menu.

When I press the keyboard shortcut, the Object menu briefly hilites like menu items should when an item within is chosen, but the script editor does not launch.

Anybody have any suggestions?
Greg (pink) Miller

MadPink, LLC
I'm Mad, Pink and Dangerous to Know
dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10501
Joined: Wed May 06, 2009 2:28 pm

Re: Creating shortcuts for IDE not working on Mac

Post by dunbarx »

Hi.

Why not just:

Code: Select all

on commandKeyDown tkey
   if tKey = "S"  then edit the script of this stack
end commandKeyDown
Or whatever. This can implemented as a plug-in or a stack in use.

Others may know if the OS retains control of these sorts of things, and LC can't invoke them.

Craig Newman
jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7423
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: Creating shortcuts for IDE not working on Mac

Post by jacque »

Cmd-shift-S and Cmd-shift-C are built in.

There's a full list of supported shortcuts here:
http://livecode.byu.edu/helps/shortcuts.php
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
pink
Posts: 285
Joined: Wed Mar 12, 2014 6:18 pm

Re: Creating shortcuts for IDE not working on Mac

Post by pink »

That is a great list of shortcuts, thanks!
Greg (pink) Miller

MadPink, LLC
I'm Mad, Pink and Dangerous to Know
dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10501
Joined: Wed May 06, 2009 2:28 pm

Re: Creating shortcuts for IDE not working on Mac

Post by dunbarx »

@Jacque.

You know, it never occurred to me that the OP did not know the old built-in shortcuts. I thought custom ones were what was wanted.

@Pink.

Is it so? These have been around for 30 years. Hard to live without them.

Craig
atout66
Posts: 266
Joined: Wed Feb 02, 2011 12:31 pm

Re: Creating shortcuts for IDE not working on Mac

Post by atout66 »

@Jacque

I've been wondering so many times why the Ctrl+G in the script editor didn't work to <go to line number> (like in some other editors), and now I see it's Ctrl+L :shock:

Many thanks for this usefull list :wink:
Discovering LiveCode Community 6.5.2.
Post Reply