Bug 412227

Summary: Terminal has the focus when Kate opens.
Product: [Applications] kate Reporter: Baltasar <baltasarq>
Component: applicationAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version First Reported In: 19.08.0   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Baltasar 2019-09-23 07:25:56 UTC
When the Terminal is activated, the focus goes to the terminal window component instead to the main application.


STEPS TO REPRODUCE
1. Activate Terminal in the Kate settings. Open the Terminal and close Kate.
2. Launch Kate.
3. Press Ctrl+O.

OBSERVED RESULT
Instead of opening the open file dialog, a new prompt is shown in the terminal. In order for Ctrl+O to work, you'll have to click in the main window and then press it again.

EXPECTED RESULT
The main window should be the one grabbing focus. The terminal component should be there as a complement, i.e., should not receive focus unless excplicitly clicked.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: Manjaro
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 5.61.0
Qt Version: 5.13.0

ADDITIONAL INFORMATION
Comment 1 Christoph Cullmann 2019-09-23 07:37:26 UTC
Git commit e114b53eb0b448d6cd2dbb2f242a7c086334c02b by Christoph Cullmann.
Committed on 23/09/2019 at 07:36.
Pushed by cullmann into branch 'master'.

ensure view stack gets focus on startup

M  +3    -3    kate/katemainwindow.cpp

https://invent.kde.org/kde/kate/commit/e114b53eb0b448d6cd2dbb2f242a7c086334c02b
Comment 2 Christoph Cullmann 2019-09-23 07:37:30 UTC
Git commit e114b53eb0b448d6cd2dbb2f242a7c086334c02b by Christoph Cullmann.
Committed on 23/09/2019 at 07:36.
Pushed by scmsync into branch 'master'.

ensure view stack gets focus on startup

M  +3    -3    kate/katemainwindow.cpp

https://commits.kde.org/kate/e114b53eb0b448d6cd2dbb2f242a7c086334c02b
Comment 3 Christoph Cullmann 2022-08-07 17:00:34 UTC
Git commit 9fc29d38cc77ef229618eae5b1a817e2c804df5e by Christoph Cullmann, on behalf of loh tar.
Committed on 07/08/2022 at 16:48.
Pushed by cullmann into branch 'master'.

(re) fix BUG: 412227

Has not worked here, but now do

commit e114b53eb0b448d6cd2dbb2f242a7c086334c02b
Author: Christoph Cullmann <cullmann@kde.org>
Date:   Mon Sep 23 09:36:35 2019 +0200

    ensure view stack gets focus on startup

M  +1    -1    apps/lib/katemainwindow.cpp

https://invent.kde.org/utilities/kate/commit/9fc29d38cc77ef229618eae5b1a817e2c804df5e