Bug 67984

Summary: cannot use num pad decimal point on german keyboards
Product: [Applications] kcalc Reporter: Malte Starostik <malte>
Component: generalAssignee: Klaus Niederkrüger <kniederk>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:

Description Malte Starostik 2003-11-12 11:10:30 UTC
Version:           1.3.999 (using KDE 3.1.93 (CVS >= 20031028), compiled sources)
Compiler:          gcc version 3.3.2 20031022 (Gentoo Linux 3.3.2-r2, propolice)
OS:          Linux (i686) release 2.4.20-gentoo-r7

Using a German keyboard layout, kcalc fails to accept the num pad's decimal point -which is a comma in German- as such. You always have to relocate your fingers to the main keyboard and type a dot :-(
[wishlist:] Similarly, the display should be changed to use the decimal separator configured in kdeglobals instead of a hard-coded dot.
Thanks,
Malte
Comment 1 Klaus Niederkrüger 2004-06-03 01:33:32 UTC
Using the comma seems to work with the current version of Kcalc (and also with the KDE-3.2 version). Does it for you?

If not tell me, otherwise I will close this bug.

Klaus
Comment 2 Roger Larsson 2004-07-08 18:34:00 UTC
It works with a twist...

Entering "1,5" with numerical keyboard gives "1,05"!
Doing the same with ordinary keyboard works.

The numerical keyboard ',' does always give an additional
zero! Using numerical keyboard to enter "1,2,3,4,5" gives
"1.02030405"
Comment 3 Martin Fabian Hohenberg 2004-07-10 20:01:40 UTC
This behavior was non-existant in the KDE 3.2.3 version. It has lewad to some Accounting problems I've run into. I'd greatly appreciate if this could be fixed before beta2
Comment 4 Klaus Niederkrüger 2004-07-17 10:26:27 UTC
Sorry that I did not take care before. I was away, and really busy.

I can not reproduce your bug, but there were some problems before with the
numpad. Are you using the CVS-version?

Could you help me? Download the source and comment out in the file
"kcalc.cpp" in the function "KCalculator::keyPressEvent"
the part

    if (e->state() & Keypad && ( e->key() != Key_Period ))
    {
        NumButtonGroup->find(e->text().toInt())->animateClick();
    }

Does something change?


Sorry that I ask you to go through all this troubles, but on my system the
numpad works.

Cheers

        Klaus

Comment 5 Klaus Niederkrüger 2004-07-29 23:02:37 UTC
I hope the last patch fixes this bug for everyone.