XQuartz: Support windowItemModMask=0 or -1 to disable window shortcuts.
(cherry picked from commit 81187364e512606a6aebb95ab2967d9d420f57f2) (cherry picked from commit f2ec79e4a159dec6481691e4dd615db01770dd7a)
This commit is contained in:
		
							parent
							
								
									6c5612c2e1
								
							
						
					
					
						commit
						f1f44940f1
					
				| 
						 | 
					@ -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