Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

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 set up GTK Applications to interpret Ctrl-h as a backspace, Ctrl-u to delete the part of the line before the cursor and Ctrl-w to delete the previous word, by adding the following:

gtk-key-theme-name = "Emacs"

in the ~/.gtkrc-2.0 file.

Is there a way to do this for KDE Applications? (I am on KDE4, but an answer for KDE is welcome too.)

share|improve this question
up vote 2 down vote accepted

Emacs does not adhere to the Common User Access standard, but KDE does, you will not find these specific shortcuts. There are workarounds.

You may redefine or supplement these predefined shortcuts in the Control Centre or System Settings:

Ctrl+Backspace      delete word backward
Ctrl+Delete         delete word forward
Ctrl+K              delete line

Using the Control Centre, you may set up a keyboard macro that plays back the following sequences on for instance the trigger Ctrl+u.

Shift+Home, Delete      select from the cursor to the beginning of the line, delete selected text
Shift+End, Delete       select from the cursor to the end of the line, delete selected text

The Backspace key's functionality, namely deleting one character backward, seems to be hard-coded into Qt. Again, you can use a macro to play back Backspace on the trigger Ctrl+h.

share|improve this answer
    
Hey, that does work. In kde4, i used the "input actions" module, in system settings. Thanks a lot! – sudhang Dec 3 '09 at 15:20

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .