Bug 56871 - Numpad keys cannot be selected in KKeyChooser / KKeyButton
Summary: Numpad keys cannot be selected in KKeyChooser / KKeyButton
Status: CONFIRMED
Alias: None
Product: kdelibs
Classification: Frameworks and Libraries
Component: shortcuts (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: kdelibs bugs
URL:
Keywords:
: 80212 283283 296347 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-04-05 12:07 UTC by 0mecir
Modified: 2018-10-02 12:57 UTC (History)
6 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description 0mecir 2003-04-05 12:07:06 UTC
Version:            (using KDE KDE 3.1)
Compiler:          gcc 3.2 
OS:          Linux

Could be related to bug #53840 in some way...

In key chooser widget, you cannot choose numpad keys. Pressing any of those is detected, but empty sequence is reported. Looks like numpad keys have some extra flag in qt, maybe that's causing the problem?

Interesting thing is, that in kde control center, keybindings module, global shortcuts, numpad keys are recognized properly. However, this page has different translated i18n strings than any other occurence of these widgets, so I believe that this module uses some other version of these widgets that doesn't have this bug...

/ Tomas
Comment 1 Stephan Kulow 2003-04-05 12:23:05 UTC
Ellis - 
Comment 2 Ellis Whitehead 2003-04-08 21:09:26 UTC
The problem is that Qt can't distinguish between keypad key and their main equivalents 
for accelerators -- in other words, Qt can't use keypad keys as distinct accelerator keys.  
I'll add a warning message when something like this happens. 
Comment 3 0mecir 2003-04-09 12:12:25 UTC
Subject:  Numpad keys cannot be selected in KKeyChooser / KKeyButton
         

> The problem is that Qt can't distinguish between keypad key and their main equivalents
> for accelerators -- in other words, Qt can't use keypad keys as distinct accelerator keys.
> I'll add a warning message when something like this happens.

Not sure if I understand this correctly, but there's a flag in Qt that
is set when the appropriate key is on numeric keypad, so numpad keys can
be distinguished in keyboard events. Not sure about QAccel though, is
the problem that you describe here?

Just wanted to make it clear :)))

/ Tomas


Comment 4 john.berthels 2003-04-30 20:43:18 UTC
I noticed this as keypad-plus and keypad-minus stopping working for me as global
shortcut keys when I upgraded Mandrake 9.0 (KDE3.0) to Mandrake 9.1 (KDE 3.1.0).

I can confirm that the KDE control centre registers the keypresses as KP_Add and
KP_Subtract, but they have no effect when applied. (Using different shortcuts,
e.g. ctrl-leftarrow and ctrl-rightarrow does work, so I don't think it is me, it
feels like this bug is causing the problem).
Comment 5 J. Berger 2004-04-09 20:54:19 UTC
I'm using a Mandrake 9.1 which I upgraded to Qt 3.2.3 and KDE 3.2 and I get the following behavior:

- all numpad keys are recognised in kcalc and in the control center;
- numpad digits and '.' are not recognized in applications (noteedit to be precise) but other numpad keys are ('+', '-', etc.);
- AFAI could tell, noteedit uses the same classes as kcalc to handle its shortcuts and I recompiled both with the same compiler options and defines just to make sure it wasn't some difference there that caused the problem.
Comment 6 Maksim Orlovich 2005-04-12 17:25:28 UTC
*** Bug 80212 has been marked as a duplicate of this bug. ***
Comment 7 George Goldberg 2008-02-15 07:57:36 UTC
Is this bug still present in a recent version of KDE, such as 3.5.8 or 4.0.1?
Comment 8 Michael Leupold 2009-01-20 00:41:24 UTC
This bug is still present on current trunk (r913147) using respective qt-copy.

When entering a keyboard shortcut in applications as well as systemsettings it's undistinguishable if the key is on the keyboard or the equivalent ("original") key. If using Keypad 5 as in a shortcut, some illegible string is shown in the chooser.

Qt::KeyboardModifiers lists Qt::KeypadModifier and it seems to work alright on receiving QKeyEvents.
Comment 9 Holger 2018-10-02 09:40:27 UTC
*** Bug 283283 has been marked as a duplicate of this bug. ***
Comment 10 Holger 2018-10-02 10:18:47 UTC
*** Bug 296347 has been marked as a duplicate of this bug. ***