79

What combination of keys produce a right-click and a left-click?

rink.attendant.6
  • 768
  • 12
  • 27

4 Answers4

114

There isn't one for left-click, though spacebar and Enter are often usable.

Right-clicking is usually a request for a context-sensitive menu which is performed on the keyboard either by typing

About 65% of applications out there won't respond to the keyboard request for a context menu, because Windows programmers typically code WM_RBUTTONUP rather than the correct WM_CONTEXTMENU. Coding the latter allows for the correct action in response to the keyboard.

Tergiver
  • 1,275
  • 2
  • 8
  • 8
  • 5
    +1 for "menu/pointer looking thing usually to the right of the space bar between Alt and Ctrl". Thanks. – Xavierjazz Oct 02 '10 at 21:03
  • 9
    +1 for Shift+F10 as my stupid Logitech keyboard at work doesn't have the context key, it has a Fn key instead. If I could another +1 for the tip on trigger events too. – BeowulfNode42 May 21 '14 at 01:41
  • Ironically, SQL Server Management Studio falls within the 65%. ;-\ – Brad Christie Jan 11 '15 at 03:55
  • @BeowulfNode42 oddly enough, my Logitech keyboard has a FN inbetween the Alt Gr and the Ctrl keys, right of the SPACE. If I press the FN key and left click, I get a context menu. – Rebecca Apr 21 '15 at 14:21
  • 1
    Got stuck RDPing to a server and was trying to right click in a VM with no mouse; Shift+F10 saved the day. – Chris Nov 14 '15 at 03:06
  • Never noticed the "menu/pointer looking thing usually to the right of the space bar..." key until now... – Rosdi Mar 18 '16 at 18:10
  • @BradChristie I'm not sure which version of SSMS you used, but it looks like they fixed that at least in SQL 2016. – interesting-name-here Sep 27 '17 at 15:01
  • 1
    @GibralterTop: Good to know. I believe I was using 2014 but can't be certain. Either way, I'm glad it works now. (Maybe they're SO/SE users and saw my comment). ;-) – Brad Christie Sep 28 '17 at 13:25
24

You can define your own using software like autohotkey:

Example

This code replaces:

  • left alt to left mouse click
  • right alt to right mouse click

Code:

LAlt::LButto
RAlt::RButton

Link to autohotkey keyboard remapping: link
Link to autohotkey download : link

Margus
  • 446
  • 2
  • 4
  • 8
    If you're actually after the context menu (and not a physical rt-click) use `~RAlt::AppsKey` in your AutoHotKey script. – yhw42 May 27 '11 at 18:58
2

I have a new Logitech K740 keyboard. It just replaced my old Dell letters-scratched-off key board that had built-in context menu selection and calculator shortcut keys.

The solution to the context menu issue on the Logitech K740 is FN + PrintScrn (shows a little page or list). This key combo pops open the context menu.

Anaksunaman
  • 16,718
  • 4
  • 38
  • 45
Glen
  • 21
  • 1
0

If you're looking for a keyboard equivalent of right-click in PuTTY (or SuperPuTTY) which does a paste, shift+insert does a paste

eric
  • 1,091
  • 1
  • 9
  • 10