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 108202 - tabbing into empty entry should still remove primary selection from previous entry
tabbing into empty entry should still remove primary selection from previous ...
Status: RESOLVED OBSOLETE
Product: gtk+
Classification: Platform
Component: Widget: GtkEntry
2.2.x
Other Linux
: Normal normal
: Medium feature
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2003-03-12 16:03 UTC by Dan Winship
Modified: 2018-02-10 03:23 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Mail from Lubos Lunak about focus details (10.46 KB, text/plain)
2003-05-20 22:19 UTC, Owen Taylor
Details

Description Dan Winship 2003-03-12 16:03:56 UTC
Suppose you have:

   Entry1: [foo     ]
   Entry2: [bar     ]
   Entry3: [        ]

If "foo" is selected, and I hit "Tab", then "foo" loses the selection
and "bar" becomes selected. But if I hit "Tab" again into the empty
entry, the cursor moves but "bar" stays selected. This looks weird and
is not consistent with mac/windows/gtk1.2.

The offending code is in gtk_entry_update_primary_selection()
Comment 1 Owen Taylor 2003-05-20 22:18:22 UTC
Is this really the correct description of the Windows/Macintosh
behavior, or do they deselect on focus-out?

(Windows is going to be hard to tell, since it never shows
a selection in an non-focused entry, if I recall.)

There is some discussion about the whole selection mess
and particular about focus-out behavior at:

http://www.redhat.com/archives/xdg-list/2002-November/msg00046.html
http://www.redhat.com/archives/xdg-list/2002-November/msg00062.html

The original message in that thread went to kde-core-devel,but,
for some reason doesn't seem to be in the KDE devel archives.
I'll attach it here.
Comment 2 Owen Taylor 2003-05-20 22:19:52 UTC
Created attachment 16684 [details]
Mail from Lubos Lunak about focus details
Comment 3 Dan Winship 2003-05-20 22:31:57 UTC
Mac doesn't let you focus non-text widgets, so the two behaviors
would be indistinguishable.
Comment 4 Owen Taylor 2004-03-11 22:48:25 UTC
Think we need to think about/ address selection/clipboard behavior
comprehensively. 
Comment 5 Matthias Clasen 2018-02-10 03:23:11 UTC
We're moving to gitlab! As part of this move, we are closing bugs that haven't seen activity in more than 5 years. If this issue is still imporant to you and
still relevant with GTK+ 3.22 or master, please consider creating a gitlab issue
for it.