SLUG Mailing List Archives
[SLUG] Re: Clearing a text entry field
- To: SLUG Main List <slug@xxxxxxxxxxx>
- Subject: [SLUG] Re: Clearing a text entry field
- From: Angus Lees <gus@xxxxxxxxxxx>
- Date: Mon Jun 17 10:56:02 2002
- User-agent: Wanderlust/2.9.9 (Unchained Melody) XEmacs/21.4 (Common Lisp)
At Sun, 16 Jun 2002 13:31:34 +1000, Mary Gardiner wrote:
> On Sun, Jun 16, 2002 at 01:07:32PM +1000, Harry Ohlsen wrote:
> > Does anyone know a key sequence to empty a text entry field in X
> > applications? In particular, I'm thinking of the URL entry field in
> > Netscape/Opera/Mozilla.
> Ctrl-U, at least in Mozilla.
> This is the same key combination that will clear text from the cursor to
> the beginning of the line in bash, but in X applications, it always
> seems to clear the entire field.
its up the app/widget set to give its own keybindings, however there
are some common conventions:
C-u seems to be the most common "delete from here to the beginning of
the line" key.
otherwise, C-a to jump to the beginning of the text field, followed by
C-k to delete from the cursor to the end of the line usually works.
(and other emacs cursor-movement keybindings)
at least in Xt-derived widget sets (Xaw, motif, Tk, etc) you can
change the keybindings on the fly using Xresources. have a look in
/etc/X11/app-defaults/ (or wherever in your distro) and grep for
"translations". the syntax should be mostly obvious and functions
available are (hopefully) documented in the appropriate manpages.