accel problems: might be qt-copt, might be kdelibs

Alexander Neundorf alexander.neundorf at gmx.net
Wed Oct 16 17:57:47 BST 2002


On Monday 14 October 2002 22:45, Ellis Whitehead wrote:
> On Monday 14 October 2002 11:41, Alexander Neundorf wrote:
> > On Sunday 13 October 2002 16:59, Ellis Whitehead wrote:
> > ...
> >
> > > Hi.  No need for the keyPressEvent() stuff.  The problem was due to an
> > > oversight in the kaccel code: the keyPress event wasn't being stopped
> > > after being handled by KAccel.  The attached patch seems to fix it. 
> > > It's an ugly hack, but it seems to be working fine, and I'll increase
> > > the aesthetic value later. *grin*  It adds a new class,
> > > KAccelEventFilter, which adds itself to the kapp x11 event filter list.
> > >  KAccelEventFilter then kills the keyPress event if it's handled by
> > > KAccel.
> > >
> > > Seem ok to commit?
> >
> > It doesn't compile with --enable-final, due to KeyPress, which is already
> > undefined in kapplication.cpp
>
> New patch attached.  I'm not using --enable-final, so I didn't test it in
> that respect, but the #undef is placed before any k*.h includes.
>
> > The problem in konqy still exists.
> > Pressing alt+left goes back and activates the menubar, which then can't
> > be deactivated using Escape.
>
> I can't reproduce this, but I'm not using the most recent qt-copy either. 
> Are you aware of other people having this problem too?  When you press and
> release the Alt key, does it activate the menu?

Yes, it activates the menu bar and highlights the first entry (it doesn't pop 
up a menu), and it can't be deactivated via Escape.

Bye
Alex





More information about the kde-core-devel mailing list