[PATCH] fix line edit in ksirc

Simon Hausmann hausmann at kde.org
Sun Nov 24 10:07:45 GMT 2002


On Sun, Nov 24, 2002 at 10:33:56AM +0100, Ellis Whitehead wrote:
> Whenever a widget processes a key via QEvent::AccelOverride, it must set  
> QKeyEvent::accepted() so that Qt knows that it was processed.  ahistlineedit 
> did this with the accels it processed explicitly, but didn't do this with any 
> keys that were processed by QLineEdit.  For example, press Alt+C and you'll 
> get both a 'c' in QLineEdit (bug in QLineEdit for which I submitted a patch 
> to Trolltech over six months ago...) _and_ the "Channel" menu becomes 
> activated.
> 
> The reason that the Shift+Left key causes a problem now is because of a change 
> in kdelibs which sometimes checks AccelOverride twice.  This will be fixed in 
> 3.2, but for now it only causes a problem when the widget that processes a 
> key in AccelOverride doesn't properly let Qt know that by setting 
> QKeyEvent::accepted().

Agreed, ksirc should have accepted those. After all: thanks for your patch!
(also thanks to pmax of course)


Simon




More information about the kde-core-devel mailing list