diff --git a/src/plugin/ollieplugin.cpp b/src/plugin/ollieplugin.cpp index a067c36..e8c283c 100644 --- a/src/plugin/ollieplugin.cpp +++ b/src/plugin/ollieplugin.cpp @@ -47,9 +47,10 @@ namespace katecustom namespace { // True for the Kate actions that change which split pane is active: moving -// focus between panes, or creating a split (Kate activates the new pane). After -// one of these fires we warp the mouse pointer onto the now-active pane so the -// cursor follows the focus (mouse-first UX). +// focus between panes, creating a split (Kate activates the new pane), or +// closing a pane (Kate activates a neighbour). After one of these fires we warp +// the mouse pointer onto the now-active pane so the cursor follows the focus +// (mouse-first UX). bool isPaneFocusAction(const QString &id) { return id == QLatin1String("go_left_split_view") @@ -59,7 +60,9 @@ bool isPaneFocusAction(const QString &id) || id == QLatin1String("go_next_split_view") || id == QLatin1String("go_prev_split_view") || id == QLatin1String("view_split_vert") - || id == QLatin1String("view_split_horiz"); + || id == QLatin1String("view_split_horiz") + || id == QLatin1String("view_close_current_space") + || id == QLatin1String("view_close_others"); } // Bracket pairs understood by the double-click selection feature.