Permalink
Browse files

only show up to 4 levels of menu items rather than 7 by default

  • Loading branch information...
neurolepsy
neurolepsy committed Apr 20, 2011
1 parent 115cf9b commit 41faaa167b6e8f4f5c84f17f59846aa6807072b5
Showing with 3 additions and 3 deletions.
  1. +1 −1 elements.accessibility/Info.plist
  2. +2 −2 elements.accessibility/QSUIAccessPlugIn_Action.m
@@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>BNDL</string>
<key>CFBundleVersion</key>
- <string>19B</string>
+ <string>19C</string>
<key>NSPrincipalClass</key>
<string>QSUIAccessPlugIn</string>
<key>QSActions</key>
@@ -72,7 +72,7 @@ - (QSObject *)searchAppMenus:(QSObject *)dObject{
AXUIElementRef app=AXUIElementCreateApplication (pid);
AXUIElementRef menuBar;
AXUIElementCopyAttributeValue (app, kAXMenuBarAttribute, &menuBar);
- NSArray *items=MenuItemsForElement(menuBar,7,nil,3,process);
+ NSArray *items=MenuItemsForElement(menuBar,4,nil,3,process);
[QSPreferredCommandInterface showArray:items];
return nil;
@@ -204,7 +204,7 @@ - (NSArray *)validIndirectObjectsForAction:(NSString *)action directObject:(QSOb
AXUIElementRef app=AXUIElementCreateApplication (pid);
AXUIElementRef menuBar;
AXUIElementCopyAttributeValue (app, kAXMenuBarAttribute, &menuBar);
- NSArray *actions=MenuItemsForElement(menuBar,7,nil,3, process);
+ NSArray *actions=MenuItemsForElement(menuBar,4,nil,3, process);
//NSLog(@"actions: %@",actions);
return [NSArray arrayWithObjects:[NSNull null],actions,nil];

0 comments on commit 41faaa1

Please sign in to comment.