Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm a web developer, and use a specific IDE for all of my work. It does everything I need it to do, so please don't suggest a host of other IDEs. The only issue I have with it is that there is no keyboard shortcut for printing. It drives me up a wall to have to use the menus for this. I'm new to Mac - is there a program or utility like AutoHotKeys that would let me create keyboard shortcuts that work inside of apps?

share|improve this question
up vote 5 down vote accepted

Usually Command + P is the keyboard shortcut to print. If it's not, you can add your own keyboard shortcut. You shouldn't need any additional apps to do this. It's built right into the Mac.

Go to System Preferences -> Keyboard. Select Keyboard Shortcuts. At the bottom, click the + button to add a new keyboard shortcut. To add a keyboard shortcut to a specific application, select it from the Application dropdown menu. Enter the name of the command exactly as it appears in the menu (In this case it may simply be "print").

Additional cool trick

If you don't always feel like setting a keyboard shortcut: You can use Command + ? to bring up the Search menu from within the application itself. Start typing in the name of the command you'd like to select. Once you have enough characters, the menu item should be highlighted. Hit Return and it will select that menu item. Instant keyboard shortcut!


Since you specified that this issue is about Komodo Edit there's some good news and bad news:

The bad news: Komodo Edit, like Firefox, is built using XUL. Many XUL applications have an ongoing bug when it comes to respecting keyboard shortcuts set from System Preferences on the Mac. Namely, they don't. (If anyone has any solutions or comments about this please let me know)

The good news: Komodo Edit lets you set your own keyboard shortcuts from within the application! Go to Preferences -> Editor -> Key Bindings, search "Commands" for "Print", select it, and assign whatever keyboard shortcut you like.

share|improve this answer
How do I do it if the Print command is buried in a submenu? The menu path looks like this: File - > Print -> Print (the Print submenu contains the actual Print command, as well as Print Settings, Print Selected Text, Print to HTML, etc.) – EmmyS Apr 15 '11 at 16:32
It shouldn't matter as long as you enter the item's menu name exactly as it appears in the menu itself. What's the application? – michaelmichael Apr 15 '11 at 16:41
Komodo Edit. I think because the menu name and action item are the same, it may be getting confused. – EmmyS Apr 15 '11 at 16:50
To add to the comment, it added the shortcut to both the Print menu and the Print action item in the submenu. When I try using the shortcut (command+p), the File menu header flashes like it's trying to do something, but nothing actually happens. – EmmyS Apr 15 '11 at 16:58
see my edit above. – michaelmichael Apr 15 '11 at 17:18

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.