> Mod1Mask typically represents Alt, so try adding this to config.h:
> 
> { XK_BackSpace, Mod1Mask, "\177", 0, 0, 0},
> 
> Eric
> Received on Tue Jul 05 2016 - 04:28:28 CEST
> 
I've added the line into my config.h and now there is no difference
between pressing BackSpace and Alt+Backspace. I don't remove this line.

{ XK_BackSpace,     XK_NO_MOD,      "\177",          0,    0,    0},

$ showkey -a

Press any keys - Ctrl-D will terminate this program

^?      127 0177 0x7f
^?      127 0177 0x7f

The first ^? is BackSpace pressed, the second ^? is Alt+Backspace pressed.
Should I add "\033\177" or there is another workaround?

For additional information, urxvt recognizes alt+BackSpace perfectly.
^[^?     27 0033 0x1b
        127 0177 0x7f

Reply via email to