After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 72245 - Ctrl-U not bound in entry widgets
Ctrl-U not bound in entry widgets
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Widget: Other
1.3.x
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
: 72580 78908 89587 90260 98030 111553 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2002-02-22 12:46 UTC by Thomas Leonard
Modified: 2011-02-04 16:11 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Allow Shift+button-2 to replace the enter text with the primary selection (519 bytes, patch)
2002-03-04 17:15 UTC, Thomas Leonard
none Details | Review

Description Thomas Leonard 2002-02-22 12:46:00 UTC
In 1.3.13 (and all previous versions), Ctrl-U was used to clear the text
(as is standard throughout Unix/Linux). However, this has stopped working
in 1.3.14.

This is a major problem given that select-without-taking-primary is no
longer supported in gtk+-2.0, as it makes using the primary selection very
difficult (Ctrl-A is no good, as it claims primary).
Comment 1 Matthias Clasen 2002-02-22 14:18:59 UTC
This has nothing to do with update policy, see #61743.

*** This bug has been marked as a duplicate of 61743 ***
Comment 2 Matthias Clasen 2002-02-22 14:21:52 UTC
Sorry, I meant to operate on another bug, ignore my comment.
Comment 3 Owen Taylor 2002-02-22 15:45:38 UTC
There are three questions here:

 - Should C-u be in the default key bindings. I'd say pretty
   definitely not; we are keeping the amount of C-letter 
   combinations there to a real minimum.
   
   (The default key bindings are defined in:

    http://developer.gnome.org/projects/gap/keyboardnav.html)

 - Should C-u by in the "Emacs" key binding set. I didn't put
   it there because it isn't a emacs key binding.

 - Should we have some other "unixy" key binding set that
   has C-u? (Anything else?)
Comment 4 Owen Taylor 2002-02-25 23:40:03 UTC
*** Bug 72580 has been marked as a duplicate of this bug. ***
Comment 5 Thomas Leonard 2002-03-04 17:15:18 UTC
Created attachment 6970 [details] [review]
Allow Shift+button-2 to replace the enter text with the primary selection
Comment 6 Thomas Leonard 2002-03-05 12:42:26 UTC
As far as I can see, the only advantage of Ctrl-U over Ctrl-A is that
it provides a way to clear without losing the primary selection. By
far the most common reason for wanting to do that is to replace the
contents of the entry with the selection.

The above patch allows the user to perform this operation by doing a
middle-button click with Shift held down (eg, to copy '3128' from the
http proxy port box into the ftp and ssh proxy boxes in a browser
config, you would double click the 3128 and shift-2-click each of the
other boxes in turn).

This has the advantage of actually being quicker and easier than the
old way.

Long term, 'replace with selection' should perhaps be added to the
popup menu too.
Comment 7 Owen Taylor 2002-03-25 23:27:52 UTC
Moving non-critical or hard to fix bugs to 2.0.2
Comment 8 Matthias Clasen 2002-04-05 13:35:49 UTC
Move open bugs from milestones 2.0.[012] -- > 2.0.3, since 2.0.2 is already out.
Comment 9 Owen Taylor 2002-04-21 13:04:59 UTC
*** Bug 78908 has been marked as a duplicate of this bug. ***
Comment 10 Owen Taylor 2002-08-02 03:33:30 UTC
*** Bug 89587 has been marked as a duplicate of this bug. ***
Comment 11 Akkana Peck 2002-08-02 04:16:56 UTC
Two other key bindings that are typically found alongside ^U in text
entry areas: ^H, for delete backward one character, and ^W, for delete
backward one word.

^H, in particular, has been supported for over a decade in nearly all
unix apps, DOS, most windows apps, and many or most mac apps.
Comment 12 Akkana Peck 2002-08-02 20:14:54 UTC
(from bug 89587)
> It's called the "Emacs" keytheme. Not the "combination
> of emacs and terminal keybindings supported by GNU readline"... :)

In the case of ^H, make that GNU Readline, Unix shells (depending on
stty settings) and programs like vi, gtk up to 2.0, kde, Motif,
SunView, XView, DOS, Windows, MacOS, XUL/XBL, OS X, tk, and probably
many others.  (For ^U and ^W, the list is shorter and only includes
the Unix toolkits, not mac/windows.)
Comment 13 Owen Taylor 2002-08-08 21:26:08 UTC
*** Bug 90260 has been marked as a duplicate of this bug. ***
Comment 14 Calum Benson 2002-10-24 19:10:52 UTC
(Just adding comments in response to Owen's recent "should we fix 
for 2.2" email)

I don't have particularly strong opinions on this as I don't use the 
emacs keybindings, but assuming ^U, ^W and ^H didn't clash with any 
other bindings in the Emacs set, I'd be inclined to add them to that 
and change its name accordingly.  I suspect there are probably few 
people who are familiar with one set but not the other, and a lot 
more people who would be confused if ^W|U|H were added to the 
default set (especially with ^W, which is supposed to do File->Close 
in windows that support it).
Comment 15 Owen Taylor 2002-11-08 19:22:15 UTC
*** Bug 98030 has been marked as a duplicate of this bug. ***
Comment 16 Owen Taylor 2002-12-12 23:04:40 UTC
Thu Dec 12 17:58:41 2002  Owen Taylor  <otaylor@redhat.com>

        * gtk/gtkrc.key.emacs: Add C-u/C-h/C-w. (#72245)
Comment 17 Steve Fox 2002-12-13 19:26:25 UTC
I just need to make sure I understand the resolution. The only way I
can get this to function with the "GNOME" keybindings? I really abhore
emacs, but clearing text fields easily I something I really
appreciate. Is there a different key binding that will do the same
thing for the "GNOME" setting?
Comment 18 Havoc Pennington 2002-12-13 19:38:24 UTC
The "Emacs" key theme just adds C-u and C-a and maybe one or two others
to the standard key theme.
Comment 19 Steve Fox 2002-12-13 20:06:08 UTC
That rocks. Thanks Havoc and Owen.
Comment 20 Matthias Clasen 2003-04-25 09:19:44 UTC
*** Bug 111553 has been marked as a duplicate of this bug. ***