Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I would like to bind my Menu key (the one that brings up the context menu at your cursor location) to my Delete key for convenience.

Preferably, I'd like to do this through xkboptions in /etc/default/keyboard, as that's where I have rebound my Esc key. I couldn't get that to work so I tried using Xmodmap, but I needed the keycode for the Menu key. Here is the output I get from xev when I press the Delete key, followed by the Menu key:

KeyPress event, serial 47, synthetic NO, window 0x2c00001,
    root 0x90, subw 0x0, time 51367021, (-344,241), root:(250,535),
    state 0x10, keycode 119 (keysym 0xffff, Delete), same_screen YES,
    XLookupString gives 1 bytes: (7f) ""
    XmbLookupString gives 1 bytes: (7f) ""
    XFilterEvent returns: False

KeyRelease event, serial 47, synthetic NO, window 0x2c00001,
    root 0x90, subw 0x0, time 51367106, (-344,241), root:(250,535),
    state 0x10, keycode 119 (keysym 0xffff, Delete), same_screen YES,
    XLookupString gives 1 bytes: (7f) ""
    XFilterEvent returns: False

FocusOut event, serial 47, synthetic NO, window 0x2c00001,
    mode NotifyGrab, detail NotifyAncestor

MappingNotify event, serial 47, synthetic NO, window 0x0,
    request MappingKeyboard, first_keycode 8, count 248

MappingNotify event, serial 48, synthetic NO, window 0x0,
    request MappingKeyboard, first_keycode 8, count 248

FocusIn event, serial 48, synthetic NO, window 0x2c00001,
    mode NotifyUngrab, detail NotifyAncestor

KeymapNotify event, serial 48, synthetic NO, window 0x0,
    keys:  4294967184 0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   
           0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0  

Thanks.

share|improve this question
    
This happens when something intercepts the keycodes before they get to the system (Xorg I think it is). Try and see if something would be using <menu> for something else. –  Seth Mar 4 at 4:04

Your Answer

 
discard

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

Browse other questions tagged or ask your own question.