[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kfm-devel
Subject:    Re: Bug#4656: konqueror : Default keys to delete files
From:       David Faure <david () mandrakesoft ! com>
Date:       2000-06-18 9:12:45
[Download RAW message or body]

On Sat, Jun 17, 2000 at 09:59:04PM -0400, Dawit Alemayehu wrote:
> On Sat, 17 Jun 2000, David Faure wrote:
> > > I propose to put the following shorcuts under the edit menu
> > > (so that Windows users can do a easier transition):
> > > 
> > > Move to trash    Del
> > > Delete           Shift+Del
> > > Shred            Ctrl+Shift+Del
> > 
> > IIRC there was a problem with Del, that's why I chose Ctrl+Del.
> > The problem being: when one hit 'del' to correct a URL in the location bar,
> > it triggered the action. That may be a flaw in the accel mechanism
> > (they are be triggered whichever widget has the focus), but... well...
> > this goes deep down into Qt AFAIK.
> > 
> > Oh... how much this triggers bad memories from kfm.... :(
> > 
> > Does anyone else know if there is a way to avoid triggering the
> > "del" action when the focus is in the location bar ?
> 
> Okay I run one test on this and it does not make sense.  Since we now use
> KComboBox in konqy,  I trapped the "Delete" key after manually performing the
> delete action.  I returned from the ::keyPressed method consuming the event
> ( e-accept() ).  However I get the same result, i.e. it tries to delete the
> entry in the icon-view.
Maybe the accel triggering happens BEFORE the event is sent to widgets ?

> I do not understand why the event propagation would
> first get to the icon-view when the combobox has focus!!! 

Not the iconview. The main window. The accel itself, which is defined at a global
level for the window, by Qt.
I don't know if this is the intended behaviour, a bug, or something we overlooked...

-- 
David FAURE, david@mandrakesoft.com, faure@kde.org
http://home.clara.net/faure/, http://www.konqueror.org/
KDE, Making The Future of Computing Available Today
See http://www.kde.org/kde1-and-kde2.html for how to set up KDE 2

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic