I'm creating a standalone app for use on a Mac. I have a menu with 4 menu items.
Menu item 1 uses Cmd-1
Menu item 2 uses Cmd-2
Menu item 3 uses Cmd-Shift-1
Menu item 4 uses Cmd-Shift-2
At least.... that what's I would like them to be.
But the menu displays:
Menu item 1: Cmd-1
Menu item 2: Cmd-2
Menu item 3: Cmd-1
Menu item 4: Cmd-2
When I use Cmd-Shift-G and Cmd-Shift-B respectively for menu items 3 and 4, I do get expected shortscuts in the menu:
Menu item 1: Cmd-1
Menu item 2: Cmd-2
Menu item 3: Cmd-Shift-G
Menu item 4: Cmd-Shift-B
Why can't I set Cmd-Shift-1 or 2 as keyboard shortcut for a menu item?
Isn't it possible to set Cmd-Shift-1 as keyboard shortcut for a menu item?
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Re: Isn't it possible to set Cmd-Shift-1 as keyboard shortcut for a menu item?
On a german keyboard:
SHIFT-1 = !
SHIFT-2 = "
So there is no CMD-SHIFT-1 actually, but CMD-!, maybe that is the reason?
SHIFT-1 = !
SHIFT-2 = "
So there is no CMD-SHIFT-1 actually, but CMD-!, maybe that is the reason?
-
- Livecode Opensource Backer
- Posts: 10099
- Joined: Fri Feb 19, 2010 10:17 am
Re: Isn't it possible to set Cmd-Shift-1 as keyboard shortcut for a menu item?
This 'thing' about CMD-SHIFT-1 has already been mentioned elsewhere by the same OP.
- -
Mind you, inside LiveCode, at least, SHIFT-CMD-anything is a problem.
- -
Mind you, inside LiveCode, at least, SHIFT-CMD-anything is a problem.
Code: Select all
on rawKeyUp RP
put RP into fld "ff"
if the commandKey is down then
put "CMD " before fld "ff"
end if
if the shiftKey is down then
put "SH " before fld "ff"
end if
if the altKey is down then
put "ALT " before fld "ff"
end if
end rawKeyUp
- Attachments
-
- COMMANDER.livecode.zip
- Here's the stack.
- (925 Bytes) Downloaded 204 times
Re: Isn't it possible to set Cmd-Shift-1 as keyboard shortcut for a menu item?
Thanks Klaus and Richmond!
Because I couldn't figure this one out at first and I didn't want to use other keyboard shortcuts, I changed the way my app works, so that now I don't need those extra commands in the menu.
Uhh, did I really talk about this before? May be I did, my memory fails me (wouldn't be the first time).This 'thing' about CMD-SHIFT-1 has already been mentioned elsewhere by the same OP.

Yes, and I guess I sort of understand why now. (Actually I had "Option" instead of "Shift" at first. I wanted to use "Command-Option-1" and I didn't get that to display in the menu either.)Mind you, inside LiveCode, at least, SHIFT-CMD-anything is a problem
Because I couldn't figure this one out at first and I didn't want to use other keyboard shortcuts, I changed the way my app works, so that now I don't need those extra commands in the menu.