XQuartz: Support windowItemModMask=0 or -1 to disable window shortcuts.

(cherry picked from commit 81187364e5)
(cherry picked from commit f2ec79e4a1)
This commit is contained in:
Jeremy Huddleston 2008-08-20 09:50:54 -07:00
parent 6c5612c2e1
commit f1f44940f1

View File

@ -139,7 +139,10 @@
name = [[list objectAtIndex:i] objectAtIndex:0];
shortcut = [[list objectAtIndex:i] objectAtIndex:1];
if(windowItemModMask == 0 || windowItemModMask == -1)
shortcut = @"";
item = (NSMenuItem *) [menu addItemWithTitle:name action:@selector
(item_selected:) keyEquivalent:shortcut];