Bug 516077

Summary: Keyboard focus incorrectly shifts to Terminal panel on mouse-over
Product: [Applications] kate Reporter: thomas.oliveira
Component: applicationAssignee: KWrite Developers <kwrite-bugs-null>
Status: REPORTED ---    
Severity: normal    
Priority: NOR    
Version First Reported In: 23.08.5   
Target Milestone: ---   
Platform: Kubuntu   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description thomas.oliveira 2026-02-16 10:38:30 UTC
STEPS TO REPRODUCE

1. Open Kate and ensure the Terminal plugin/panel is visible (F4).
2. Click into the main text editor and type a few characters to confirm focus.
3. Move the mouse cursor from the editor area over the Terminal panel and then back to the editor area.
4. Attempt to continue typing in the editor immediately without clicking.

OBSERVED RESULT

The keyboard focus remains trapped in the Terminal panel. Keystrokes are sent to the shell/command line instead of the document, even though the user never clicked the terminal.

EXPECTED RESULT

The focus should remain in the text editor. Moving the mouse over the terminal should not trigger a focus change unless the user explicitly clicks the terminal panel.

SOFTWARE/OS VERSIONS

Operating System: Kubuntu 24.04
KDE Plasma Version: 5.27.12
KDE Frameworks Version: 5.115.0
Qt Version: 5.15.13
Kernel Version: 6.8.0-100-generic (64-bit)

ADDITIONAL INFORMATION

The system Window Activation Policy is set to "Click to focus" (System Settings > Window Management > Window Behavior).