[PATCH] Bug 36577: pressing enter when the the backdrop has focus

Lubos Lunak l.lunak at suse.cz
Tue May 6 11:47:07 BST 2003

On Tuesday 06 of May 2003 12:09, Waldo Bastian wrote:
> On Tuesday 06 May 2003 01:25, David Faure wrote:
> > On Monday 05 May 2003 17:58, Waldo Bastian wrote:
> > > The following patch changes kdesktop so that it:
> > >  1) Unselects all icons when kdesktop looses focus
> >
> > Good idea.
> >
> > >  2) <Enter> only does something if the icon is actually highlighted
> > > (t.i. selected)
> >
> > Hmm, that would be inconsistent with Konqueror, and it makes keyboard
> > usage of the desktop quite awkward, doesn't it? You'd then need to press
> > Space before being able to press Return, to activate something. (I mean
> > if the first icon that gets the focus when you click on the desktop, is
> > the one you want to launch). Once you start navigating you get a selected
> > icon, of course. But having to do "right + left" to go back to select the
> > first icon, or "Space", is inconvenient (I always hated MS Explorer for
> > that behavior...).
> Well maybe it's me, but only after working on this patch I discovered that
> the "current item"  is actually marked with an outline (As opposed to the
> "selected item" which is clearly highlighted). I think that's very poorly
> visible so in practice you would need to press some arrow anyway in order
> to find where your current item is. Once you do that your current item also
> becomes your selected item and then it is clear on which item you are on.

 I think this is a general problem of certain listbox/listview braindamage 
when it comes to handling of current/selected, especially in the single 
selection mode:(.

 Just try some dialog that uses listbox. E.g. in the Style kcm module, if you 
use B3 style (I do), there's no style selected (at least, visually). In some 
older versions, I even had to explicitly change to some other style and back, 
otherwise any change in this module reset the style to the default one. And 
in fact, I see the problem with not being selected only in HEAD, not with 
3.1.1a SuSE RPMs, I wonder why. The kcm module for Netscape plugins is 
another nice example, you have to explicitly select every item in the list 
before you can remove it. Unfortunately my favourite example kdm kcm module 
doesn't use listboxes for configuring visible users anymore.

 IMHO in single select mode, it should be always ensured that 
current==selected (and the listbox/listview would be either allowed or not to 
have unselected item). For this specific case of desktop icons, there IMHO 
should be no icon current/selected by default.

> Totally unrelated: Is there a shortcut key to give the desktop focus?

 I'm not aware of any (why should there be one?).

Lubos Lunak
KDE developer
SuSE CR, s.r.o.  e-mail: l.lunak at suse.cz , l.lunak at kde.org
Drahobejlova 27  tel: +420 2 9654 2373
190 00 Praha 9   fax: +420 2 9654 2374
Czech Republic   http://www.suse.cz/

More information about the kde-core-devel mailing list