CocoaDev

Edit AllPages

I want to know if there’s a way to programatically select an menu item, but NOT activate it. The context is the Camino “Create Bookmark” popup, which contains two broad categories, the bookmark menu, and the bookmark bar. It would be nice if one could click on the menu, then his either Cmd-M or Cmd-B to select the “Menu” or “Bar” item, then perhaps use the arrow keys to navigate to folders underneath each, and then hit return. A lot of times, I just want to add an item to the bar (but not drag it - I like the keyboard), so I could just hit Cmd-D (Add Bookmark), Cmd-B (bookmark bar, perhaps I’d have to open the menu before that), and then return, then return to close the box.

Ideally, I’d like Cmd-M and Cmd-B to work while the menu is open, as well as when it isn’t - with just the dialog open, hitting either would pop up the menu and pre-select the appropriate item.


That’s really not what a menu was made to do. You might want to consider pressing a key bringing up a bookmark view (just like Camino has).


True, it isn’t really what a menu was originally made to do. But indulge this analogy for a minute: Using the standard keyboard shortbuts, after I open a menu, I can hit a key to move to an item. All I’m asking is for that idea already implemented to be extended, to allow the selection of a fixed menu item, rather than just what happens to be the fist one that starts with ‘M’ (or ‘B’).