Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'd like to create a shortcut with ctrl+backspace or fn+backspace or ctrl+shift+backspace which performs a forward delete (the same as the "delete" key). I use it (fn+backspace) on a Mac and I find it very useful.

Is this feasible?

share|improve this question
up vote 1 down vote accepted

I don't think this is possible, I tried to do it with xmodmap. xmodmap apparently can't catch Fn so I tried it the ctrl and ctrl-shift options.

You can see the current behavior of BackSpace using

xmodmap -pke | grep BackSpace

and the output it gives is

keycode  22 = BackSpace BackSpace BackSpace BackSpace

the different values correspond to the different modifiers:

1st: no modifier
2nd: shift
3rd: ctrl
4th: ctrl-shift

So we would like to change either the 3rd or the 4th value, we can do this by executing

xmodmap -e "keycode  22 = BackSpace BackSpace Delete BackSpace"


xmodmap -e "keycode  22 = BackSpace BackSpace BackSpace Delete"

respectively, but unfortunately this does not work for me. I think these values are overridden on some deeper level and both ctrl-backspace and ctrl-shift-backspace still delete a word backwards.

So I think you're stuck just using the delete key...

share|improve this answer

Your Answer


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

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