3

On most full sized PC keyboards there is a context menu key. See photo below.

enter image description here

My new laptop doesn't have one of these keys, but I use it all the time. The context menu shows the context menu of the currently selected item, not the item currently underneath the mouse pointer.

My question is, how can I re-map another key combination (preferably CTRL + PrtSc) to perform the same operation?

7

1 Answer 1

3

On my system, I do have a context menu key.

In a terminal, when I run xev, which should be present by default on your system as well, I see this output (in part):

KeyPress event, serial 48, synthetic NO, window 0x2000001,  
    root 0x96, subw 0x0, time 12548175, (334,-138), root:(588,185),  
    state 0x0, keycode 135 (keysym 0xff67, Menu), same_screen YES,  
    XLookupString gives 0 bytes:   
    XmbLookupString gives 0 bytes:   
    XFilterEvent returns: False

KeyRelease event, serial 48, synthetic NO, window 0x2000001,  
    root 0x96, subw 0x0, time 12548242, (334,-138), root:(588,185),  
    state 0x0, keycode 135 (keysym 0xff67, Menu), same_screen YES,  
    XLookupString gives 0 bytes:   
    XFilterEvent returns: False  

If you want to know more about xev, this maybe informative: Weekend Project: Configure Your Keyboard Into Submission

I suggest you try to bind a convenient spare keyboard shortcut to "Menu" using whichever method your distro provides and see if that works for cases where you know or expect that the right-click effect isn't the same as pressing on the Menu key.

1
  • Thanks for your great answer, I'll give it a go now as I'm on my laptop.
    – Greg
    Oct 28, 2016 at 10:35

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .