Although this qt patch fixes the problem, I wonder what the purpose of
the misspelled calculator constant is for.  These constants in qt were
pulled from XF86keysym.h from the x11proto package.  The misspelled
"XF86XK_Calculater" constant which has a different hex value from
"XF86XK_Calculator" originated in xfree86 XF86keysym.h revision 1.13 on
11/22/2002:

522. Added support for special keys found on many ACPI control, Easy Access
      Keyboards, Internet keyboards, laptops, notebooks and PDA (via
      xkb/symbols/inet). Added new key symbols for these keyboards
      (Stanislav Brabec).

Before that commit, XF86XK_Calculator was the only one that existed.

In revision 1.12, the keysym for XF86XK_Calculator was 0x1008FF1D.  This
is the same symbol that my keyword uses (Microsoft Natural Keyboard
4000).  In revision 1.13 that keysym did not change while
XF86XK_Calculater was added with a keysym of 0x1008FF54.  Strangely
enough, the comments for XF86XK_Calculator note that the developer
thinks they only apply to PDAs like Pocket PC and Palm while the other
keysym 0x1008FF54 applies to "internet keyboards" which is what I guess
my keyboard is.  I wonder if there are keyboards out there that register
the calculator key as 0x1008FF54 instead of 0x1008FF1D as my keyboard
does (you can test this with the xev program and looking at the keysym
your calculator key emits).   In that case, my patch for qt-gui would
not work for everyone.  I'm thinking that maybe Qt::Key_Calculator
should be applied to both the misspelled constant and the correctly
spelled one instead.

-- 
You received this bug notification because you are a member of Kubuntu
Bugs, which is subscribed to kde-runtime in Ubuntu.
https://bugs.launchpad.net/bugs/661829

Title:
  Cannot set up a trigger for the Calculator key

To manage notifications about this bug go to:
https://bugs.launchpad.net/kde-runtime/+bug/661829/+subscriptions

-- 
kubuntu-bugs mailing list
kubuntu-b...@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/kubuntu-bugs

Reply via email to