Bug 459743 - KCalc should not spawn multiple times on “Calculator” button with autorepeat
Summary: KCalc should not spawn multiple times on “Calculator” button with autorepeat
Status: REPORTED
Alias: None
Product: kcalc
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR wishlist
Target Milestone: ---
Assignee: Evan Teran
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-09-27 15:48 UTC by Tenno Seremel
Modified: 2022-09-27 15:48 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.