Numeric keypad not working in kcalc
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
KDE Utilities |
Won't Fix
|
Medium
|
|||
Qt |
Fix Committed
|
Undecided
|
Unassigned | ||
kcalc (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
qtbase-opensource-src (Ubuntu) |
Fix Released
|
Undecided
|
Timo Jyrinki |
Bug Description
The numbers in the numeric keypad is not working anymore in this version. The other number keys are working fine.
ProblemType: Bug
DistroRelease: Ubuntu 15.10
Package: kcalc 4:15.08.1-0ubuntu1
ProcVersionSign
Uname: Linux 4.2.0-14-generic x86_64
NonfreeKernelMo
ApportVersion: 2.19-0ubuntu1
Architecture: amd64
CurrentDesktop: KDE
Date: Tue Oct 6 10:01:48 2015
DistributionCha
# This is a distribution channel descriptor
# For more information see http://
canonical-
EcryptfsInUse: Yes
InstallationDate: Installed on 2014-03-12 (572 days ago)
InstallationMedia: Ubuntu 12.04 "Precise" - Build amd64 LIVE Binary 20130203-13:50
SourcePackage: kcalc
UpgradeStatus: No upgrade log present (probably fresh install)
Upstream Qt bug report: https:/
description: | updated |
summary: |
- Numeric keypad not working + Numeric keypad not working in kcalc |
Changed in kdeutils: | |
importance: | Unknown → Medium |
status: | Unknown → Won't Fix |
Changed in qt: | |
status: | New → Fix Committed |
Changed in kcalc (Ubuntu): | |
status: | New → Invalid |
Input from standard keys ( keysym as written by xev: 0x31, 1 ) works fine, the number 1 is displayed in the display, but when i press the number 1 on my numerickey pad ( xev: 0ffb1, KP_1 ) nothing happens in the display.
Reproducible: Always
Steps to Reproduce:
after kcalc started
1. press 1 from standard keyboard
2. press 1 from numeric keypad
Actual Results:
1. 1 is displayed correctly
2. nothing happens
Expected Results:
1. 1 is displayed
2. 11 is displayed
It tried to make a quick and dirty test in the code ( inside void KCalculator: :keyPressEvent( QKeyEvent *e) ):
I added:
std::cout << "Key pressed: " << e->key() << std::endl;
if (e->key() == Qt::Key_1) {
pb1- >animateClick( );
}
If I press std-key 1 no output on console ( it seems shortcut action as used is cauth before key-pressed event sent ).
After press key 1 from nummeric-keypad: pb1->enimateClick() is called ( no it's allso displayed correctly ) and on console: "Key pressed: 49" displayed.
Maybe its better to work with key-events than shortcuts ( so far i've seen only one shortcut is possible for each Button )