Bug 515228

Summary: Undesired location of cursor when the kcalc window gains focus.
Product: [Applications] kcalc Reporter: engineering
Component: generalAssignee: Evan Teran <evan.teran>
Status: REPORTED ---    
Severity: normal CC: gabriel.barrantes.dev
Priority: NOR    
Version First Reported In: 25.04.3   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description engineering 2026-01-28 23:49:11 UTC
SUMMARY
After using kcalc then switching to another application then back to kcalc the cursor is located in the entry panel at the end of the previous result. This is undesirable and can lead to odd results.

Functioning while using kcalc continuously, keyboad strokes below;
6*5<enter> 30 displays
4*5<enter> 20 displays (when the 4 is pressed the previous result [30] is cleared so this calculation flows straight on)

STEPS TO REPRODUCE
1. Perform the calculations above without leaving kcalc
2. Switch to another application, say firefox then switch back to kcalc
3. Type 3*5<enter>

OBSERVED RESULT
the 3 is appended to the result of the previous calculation and the number (203) multiplied by 5

EXPECTED RESULT
The previous result is cleared and 3 is displayed when the 3 is pressed, just as it would had you not switched away from kcalc


(available in the Info Center app, or by running `kinfo` in a terminal window)
Operating System: openSUSE Leap 16.0
KDE Plasma Version: 6.4.2
KDE Frameworks Version: 6.16.0
Qt Version: 6.9.1
Kernel Version: 6.12.0-160000.8-default (64-bit)
Graphics Platform: X11
Processors: 6 × Intel® Core™ i5-8400 CPU @ 2.80GHz
Memory: 32 GiB of RAM (31.3 GiB usable)
Graphics Processor: NV164


ADDITIONAL INFORMATION