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?

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.

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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