Sunday, April 28, 2024
 Popular · Latest · Hot · Upcoming
2
rated 0 times [  2] [ 0]  / answers: 1 / hits: 2430  / 2 Years ago, thu, august 11, 2022, 3:04:03

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?


More From » keyboard

 Answers
1

I don't think this is possible. I tried to do it with xmodmap, but, apparently, it can't catch Fn, so I tried it with 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"

or:


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 deletes a word backwards.


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


[#37158] Friday, August 12, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
arsleyeuth

Total Points: 72
Total Questions: 121
Total Answers: 112

Location: North Korea
Member since Mon, Oct 31, 2022
2 Years ago
;