https://bugs.kde.org/show_bug.cgi?id=485209

            Bug ID: 485209
           Summary: Clicking in special views (diff) doesn't focus its
                    split view
    Classification: Applications
           Product: kate
           Version: 24.02.1
          Platform: openSUSE
                OS: Linux
            Status: REPORTED
          Severity: minor
          Priority: NOR
         Component: general
          Assignee: kwrite-bugs-n...@kde.org
          Reporter: groszdaniel...@gmail.com
  Target Milestone: ---

SUMMARY
When a diff view (or another special view: the Welcome view or an expanded Find
in Files result view) is opened on one side of a split view, clicking inside
the diff view doesn't make it the focused split.

The main problem this causes is that activating Hide Inactive Views from the
menu, a shortcut, or (if put there) the main toolbar, it makes the other split
view fill the window, rather than the diff view. Since the diff view further
splits the view in two, I'd often like to use Hide Inactive Views with it.
Another effect is that Ctrl+Tab switches documents in the other split.

The diff view does actually receive keyboard focus: Up and Down keys work to
scroll it. It's just somehow not recognized by Kate as the active view.

Workarounds are to click the tab in the tab bar to activate it, or to click
inside the diff view and then use the navigation bar's dropdown menu to
activate Hide Inactive Views.

STEPS TO REPRODUCE
1. Create a split (I used Split Vertical).
2. Open a diff view (I did it using the Git sidebar).
3. Click somewhere inside the text in the diff view.
4. Click View/Split View/Hide Inactive Views.

OBSERVED RESULT
The view in the other side of the split fills the window.

EXPECTED RESULT
The diff view fills the window.

SOFTWARE/OS VERSIONS
Operating System: openSUSE Tumbleweed 20240404
KDE Plasma Version: 6.0.3
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.3
Kernel Version: 6.8.2-1-default (64-bit)
Graphics Platform: X11

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to