Bug 479642

Summary: Calculator widget added to panel does not react to keyboard input on opening
Product: [Plasma] kdeplasma-addons Reporter: Patrick Silva <bugseforuns>
Component: calculatorAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED FIXED    
Severity: minor CC: nate, niccolo
Priority: NOR Keywords: qt6, regression, usability
Version: 5.92.0   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=481967
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Patrick Silva 2024-01-11 11:52:34 UTC
STEPS TO REPRODUCE
1. right-click on panel and choose "+ Add widgets..."
2. add Calculator widget to panel
3. click on the widget added to panel
4. type any number

OBSERVED RESULT
typed number does not appear in the Calculator widget

EXPECTED RESULT
keyboard input works

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 5.92.0
KDE Frameworks Version: 5.248.0
Qt Version: 6.7.0
Graphics Platform: Wayland
Comment 1 Nate Graham 2024-01-11 16:42:54 UTC
Can reproduce.

Niccolò, could you take a look at why it's not getting focus as it should?
Comment 2 Bug Janitor Service 2024-01-12 12:02:43 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/kdeplasma-addons/-/merge_requests/524
Comment 3 Nate Graham 2024-01-12 15:38:46 UTC
Git commit 27e43a1ad2e28dd2f3089a6100bb57257b3b65bf by Nate Graham, on behalf of Niccolò Venerandi.
Committed on 12/01/2024 at 16:29.
Pushed by ngraham into branch 'master'.

Give the focus directly to the TextEdit component of the calculator

M  +2    -2    applets/calculator/package/contents/ui/main.qml

https://invent.kde.org/plasma/kdeplasma-addons/-/commit/27e43a1ad2e28dd2f3089a6100bb57257b3b65bf
Comment 4 Nate Graham 2024-01-12 15:42:18 UTC
Git commit 55042c704403d8e565dfd5d2b5ea079d9283d2cc by Nate Graham, on behalf of Niccolò Venerandi.
Committed on 12/01/2024 at 16:39.
Pushed by ngraham into branch 'Plasma/6.0'.

Give the focus directly to the TextEdit component of the calculator


(cherry picked from commit 27e43a1ad2e28dd2f3089a6100bb57257b3b65bf)

M  +2    -2    applets/calculator/package/contents/ui/main.qml

https://invent.kde.org/plasma/kdeplasma-addons/-/commit/55042c704403d8e565dfd5d2b5ea079d9283d2cc