Bug 511844 - Plasma-keyboard physical keyboard blocked after the virtual keyboard has been used
Summary: Plasma-keyboard physical keyboard blocked after the virtual keyboard has been...
Status: CONFIRMED
Alias: None
Product: Plasma Keyboard
Classification: Plasma
Component: general (other bugs)
Version First Reported In: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-11-08 23:14 UTC by Xwang
Modified: 2025-11-10 16:24 UTC (History)
3 users (show)

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


Attachments
Video showing the problem (861.41 KB, video/webm)
2025-11-10 15:58 UTC, Xwang
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Xwang 2025-11-08 23:14:27 UTC
SUMMARY
If I use plasma-keyboard to write in some application, often I'm not able to continue writing using the physical keyboard once I have disabled the plasma-keyboard.
That happens until I minimize and maximize again the application I was using.
I've seen this behaviour both in Konsole and Firefox (other apps probably misbehaves in the same way)

STEPS TO REPRODUCE
1. Start Konsole
2. Activate the plasma-keyboard and use it to write something
3. Deactivate the plasma-keyboard and continue writing using the physical keyboard

OBSERVED RESULT

The physical keyboard does not write any character. Minimizing and maximizing the app, it restart working correctly

EXPECTED RESULT

The physical keyboard should work without issues and should not be necessary to minimize and maximize the open application in order to be able to reuse the physical keyboard after having used the virtual one.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.5.2
KDE Frameworks Version: 6.19.0
Qt Version: 6.10.0
Kernel Version: 6.17.7-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 12 × 12th Gen Intel® Core™ i5-1240U
Memory: 16 GiB of RAM (15.2 GiB usable)
Graphics Processor: Mesa Intel® Iris® Xe Graphics
Manufacturer: Dell Inc.
Product Name: Latitude 9330

ADDITIONAL INFORMATION
maliit does not present this behaviour
KWIN_IM_SHOW_ALWAYS and PLASMA_KEYBOARD_USE_QT_LAYOUTS are both set to 1
Comment 1 duha.bugs 2025-11-10 15:39:58 UTC
I was not able to reproduce this (tried in Konsole and Kate). How often does this issue occur for you?
Comment 2 Xwang 2025-11-10 15:42:55 UTC
(In reply to duha.bugs from comment #1)
> I was not able to reproduce this (tried in Konsole and Kate). How often does
> this issue occur for you?

I would say almost always. Do you have KWIN_IM_SHOW_ALWAYS set to 1 ?
Comment 3 Xwang 2025-11-10 15:58:39 UTC
Created attachment 186672 [details]
Video showing the problem

In this case indeed at the beginning the virtual keyboard is not working and I had to minimize the window and maximize it again in order to have it working. The same has happened after closing the virtual keyboard to be able to reuse the physical keyboard.
Comment 4 Xwang 2025-11-10 15:59:04 UTC
Attached video showing the issue
Comment 5 duha.bugs 2025-11-10 16:18:45 UTC
I have KWIN_IM_SHOW_ALWAYS set to 1

Okay I can reproduce the issue where when you activate the vkb the first application does not work until you minimize and maximize.

The physical keyboard part seems unrelated to me though.
Comment 6 Xwang 2025-11-10 16:24:14 UTC
(In reply to duha.bugs from comment #5)
> I have KWIN_IM_SHOW_ALWAYS set to 1
> 
> Okay I can reproduce the issue where when you activate the vkb the first
> application does not work until you minimize and maximize.
> 
> The physical keyboard part seems unrelated to me though.

I can also replicate always the physical keyboard par after usage of the vkb ... it seems as is the focus of the window must be changed in order to have the physical keyboard working in the same window (if I select an input field in another application, the physical keyboard works and starts working even in the window where I've used the vkb ... it seems weird to me ... maybe is something linked to wayland windows management?)