Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'd like to remap Caps Lock to right click - for the cases where I can focus on objects with cursor keys, or tab.

For instance after selecting files in Finder I'd like to push Caps Lock and get the contextual menu you'd get on right click.

share|improve this question
add comment

1 Answer

You can use this keyboard driver to assign a regular key code to caps lock (e.g. enter, something you probably don't use -- it's not the same as return).

A more complete reference of known key codes than the one in the screen shot on the site is here — although they're for AppleScript, they should be the same, with Escape having the code 53 in both cases.


Use QuicKeys to create a script that is invoked when you press your hotkey.

Click + to create a shortcut. Add Step » User Actions » Clicks » Click. Configure to right-click without holding, both Click Location and Release Location being 0/0 relative to the Mouse.

share|improve this answer
    
Click Location and Release Location being 0/0 relative to the Mouse. So then, focus will be wherever your mouse pointer is, not where you focus with the keyboard, so you need to touch the mouse anyway? –  pax Jun 10 '11 at 12:00
add comment

Your Answer

 
discard

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.