xkb: make ctrl+backspace behave as delete

How can I map Ctrl+Backspace to behave as Delete key with xkb? I can remap a single key on /usr/share/X11/xkb/symbols/pc but can’t figure out how to do the combination. My OS is Ubuntu 15.04

Asked By: Caballero


As Gilles pointed out in a comment, you can do it with xkb if you change the type of BKSP key to control-modifiable.

Example: if I edit /usr/share/X11/xkb/symbols/pc and under:

include "pc(editing)"
include "keypad(x11)"

change this line:

key <BKSP> {   [ BackSpace, BackSpace  ]   };


key <BKSP> {
    symbols[Group1]=  [ BackSpace, Delete ]

then Ctrl+Backspace behaves as Delete.

Answered By: don_crissti