| Summary: | Decimal point on numpad not working for en_GB and Danish keyboard layout | ||
|---|---|---|---|
| Product: | [Applications] kcalc | Reporter: | Torben Hansen <kde-bugs> |
| Component: | general | Assignee: | Evan Teran <evan.teran> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | martonmiklosqdev, sami.tikkanen |
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | openSUSE | ||
| OS: | Linux | ||
| Latest Commit: | https://commits.kde.org/kcalc/f00e48b6a50fccba2e3a43d06752e2043fd20633 | Version Fixed/Implemented In: | 18.08.2 |
| Sentry Crash Report: | |||
| Attachments: | Proposed patch | ||
|
Description
Torben Hansen
2016-01-10 23:45:16 UTC
*** Bug 374929 has been marked as a duplicate of this bug. *** This is still an issue with version 16.08.2 Ok, here is what I see: - I have set my layout to English UK, and run the kcalc with LANG=en_GB.UTF-8 environment - I can reproduce it with the latest git master. - In the keyPressEvent an event with the key is Qt::Key_Comma wit this setup AFAIK noone would want to type in group separator (thousand separator) with the keypad comma. If others can confirm it I can create a patch easily. There is already a workaround in the code for the following similar kind of bug: https://bugs.kde.org/show_bug.cgi?id=314586 Created attachment 106662 [details]
Proposed patch
Proposed patch. Feel free to review!
I have tested the patch against kcalc-16.08.2. Confirmed that it solve the problem. Thanks Git commit f00e48b6a50fccba2e3a43d06752e2043fd20633 by Christoph Feck, on behalf of Arthur Pichlkostner. Committed on 02/10/2018 at 22:08. Pushed by cfeck into branch 'Applications/18.08'. Allow shortcut keys for both decimal separators point and comma Re-enable commented out code to handle both '.' and ',' shortcut keys for the decimal separator. Also port it from KLocale to QLocale. FIXED-IN: 18.08.2 Test Plan: Running kcalc with both locale en_US.UTF-8 and de_DE.UTF-8. In both cases the keys '.' and ',' work. Reviewed By: cfeck Differential Revision: https://phabricator.kde.org/D15680 M +4 -5 kcalc.cpp https://commits.kde.org/kcalc/f00e48b6a50fccba2e3a43d06752e2043fd20633 |