Bug 467967 - A double press on "+" will make the right-hand side panel display a false equation
Summary: A double press on "+" will make the right-hand side panel display a false equ...
Status: RESOLVED DUPLICATE of bug 454835
Alias: None
Product: kcalc
Classification: Applications
Component: general (other bugs)
Version First Reported In: 22.12.3
Platform: Debian testing Linux
: NOR major
Target Milestone: ---
Assignee: Evan Teran
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-03-30 12:44 UTC by Freedim
Modified: 2023-04-01 11:39 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Freedim 2023-03-30 12:44:23 UTC
SUMMARY
Double pressing on "+" triggers a "*2" operation, which is incorrectly rendered on the right-hand side panel.


STEPS TO REPRODUCE
Let's calculate 2+2+3...
1. Press "2", "+", "2", "+", "3", Enter
2. Now let's use the "double plus" shortcut: press "2", "+", "+", "3", Enter

OBSERVED RESULT
The first calculation is correctly rendered as "2 + 2 + 3 = 7"
The second calculation is incorrectly rendered as "2 + 2 + 3 = 5"

EXPECTED RESULT
Two possibilities:
- Either the double press on "+" is handled as a "*2" shortcut and the second calculation should then be rendered as "2 + 2 + 3 = 7", or
- (my preference) the second press on "+" is just ignored, which would result in the second calculation being rendered as "2 + 3 = 5"

I prefer the second option, which is just not having a "double plus" shortcut, because when entering long series of addition terms, I sometimes lose track of whether I have already pressed "+" after a term, and I would prefer being able to re-press "+" without risking to have a term counted twice

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Kali Linux 2023.1 (based on Debian testing)
(available in About System)
KDE Plasma Version: 5.27.2
KDE Frameworks Version: 5.103.0
Qt Version: 5.15.8
Comment 1 Ben Bonacci 2023-04-01 10:28:30 UTC
I believe the second addition is just ignored, however I'm just making an assumption. I can't find any references for such a feature in the handbook.
Comment 2 Paul Worrall 2023-04-01 11:39:44 UTC

*** This bug has been marked as a duplicate of bug 454835 ***