New KAccel bug? [PATCH#2]

Ellis Whitehead ellis at
Thu Oct 31 21:37:40 GMT 2002

On Wednesday 30 October 2002 23:22, Hasso Tepper wrote:
> Ellis Whitehead wrote:
> > Here's a patch for the problem.  I'm afraid I don't have access to
> > a compilable cvs right now, so I can't test it. :(  However, a
> > logic walk-through seems to indicate that it'll work.  Please let
> > me know.
> Applying patch, recompiling kdecore, make install, restart kde ... no
> help. Problem is still there.

Ok, I found the problem.
                     m_code = XKeysymToKeycode( qt_xdisplay(), m_sym );
 When a key symbol of zero is passed to XKeysymToKeycode(), it returns the 
keycode for the 'E' key on some machines (setup-dependent, I think).  So the 
attached patch checks whether m_sym is zero before calling XKeysym...().

Please let me know if it works and I'll commit. :)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: kkeynative_x11.cpp.diff
Type: text/x-diff
Size: 694 bytes
Desc: not available
URL: <>

More information about the kde-core-devel mailing list