XQuartz: Support windowItemModMask=0 or -1 to disable window shortcuts.
(cherry picked from commit 81187364e5
)
This commit is contained in:
parent
fcfc05482a
commit
f2ec79e4a1
|
@ -140,6 +140,9 @@
|
||||||
name = [[list objectAtIndex:i] objectAtIndex:0];
|
name = [[list objectAtIndex:i] objectAtIndex:0];
|
||||||
shortcut = [[list objectAtIndex:i] objectAtIndex:1];
|
shortcut = [[list objectAtIndex:i] objectAtIndex:1];
|
||||||
|
|
||||||
|
if(windowItemModMask == 0 || windowItemModMask == -1)
|
||||||
|
shortcut = @"";
|
||||||
|
|
||||||
item = (NSMenuItem *) [menu addItemWithTitle:name action:@selector
|
item = (NSMenuItem *) [menu addItemWithTitle:name action:@selector
|
||||||
(item_selected:) keyEquivalent:shortcut];
|
(item_selected:) keyEquivalent:shortcut];
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user