Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Menu item and hotkey' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Menu item and hotkey
Authored by: djinn on Sep 08, '05 01:48:56PM

In my version of the X11 application (Tiger.2), there's a menu item "Bring all to front" in the Window menu. It woefully doesn't have an hotkey defined by default.

Since I use it all the time to bring all the gimp windows to the front, I assigned a hotkey to it using the Interface Builder.

To do it, "Show package content" of the X11 app, then go to the Contents/Resources/English.lproj folder. Then open main.nib with Interface Builder. Open MainMenu, go to the Window menu, select "Bring All to Front" and open the inspector (shift-command-I or menu/Tools/Show Inspector). Then in "Key equivalent" put the character you want as an hotkey, modify the modifier keys (default is command), and save. You're done - once you restart X11. Interface Builder also saves a backup by default.

If you, like me, are not english, you have to modify your language's data, but if you just replace in the above instructions "English.lproj" with "XXX.lproj", you'll get an error, because the other language packs miss some data to be opened with interface builder. So, first open English.lproj/main.nib (Show package content), and copy to your language's main.nib the files "classes.nib" and "info.nib".



[ Reply to This | # ]
Menu item and hotkey
Authored by: vykor on Sep 08, '05 02:20:22PM

Or you could just do it directly from System Preferences.app, if you don't have Developer Tools installed or don't like fiddling with nib files on your own.

In System Preferences -> Keyboard & Mouse, pick the Keyboard Shortcuts tab. Hit the plus button to bring up the assignment dialog, select Other... -> X11.app from the Application drop down menu, type in "Bring All to Front" as the menu title, and then just assign the keyboard shortcut you want by typing into the Shortcut box.

Close X11.app and reopen. The shortcut should be active now.



[ Reply to This | # ]
Menu item and hotkey
Authored by: djinn on Sep 08, '05 06:00:54PM

thanks!



[ Reply to This | # ]
Menu item and hotkey
Authored by: rjbailey on Sep 08, '05 02:25:37PM

Better yet: define a keyboard shortcut in System Preferences. I hadn't used this before. Now F13 brings all the windows to the front. (I'd still rather not have to hit anything...)



[ Reply to This | # ]