Bug 459743

Summary: KCalc should not spawn multiple times on “Calculator” button with autorepeat
Product: [Applications] kcalc Reporter: Tenno Seremel <mystra.x64>
Component: generalAssignee: Evan Teran <eteran>
Status: REPORTED ---    
Severity: wishlist    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:

Description Tenno Seremel 2022-09-27 15:48:01 UTC
SUMMARY

‘If your keyboard has a “Calculator” button, pressing it will now open KCalc’ says the post on Plasma 5.26. Which means kcalc will spawn multiple times if you won't depress the button fast enough.

STEPS TO REPRODUCE
1. Press "Calculator".
2. Hold a bit.
3. Release.

OBSERVED RESULT

Likely multiple calculators.

EXPECTED RESULT

Should be only one calculator.

Either:
a) only single kcalc window should be possible;
b) autorepeat for that button should be disabled;
c) kcalc should only be running on key release.

TBH, this problem exist with any program that is run with a global hotkey, so maybe ‘c’ is better, but I'm unsure how it aligns with good UX.