Radial: warp cursor to the surviving pane on close
Add view_close_current_space / view_close_others to isPaneFocusAction so closing a pane warps the pointer onto the neighbour Kate activates. Same deferred warp as split/focus.
This commit is contained in:
parent
7495d82019
commit
eba8312969
|
|
@ -47,9 +47,10 @@ namespace katecustom
|
||||||
namespace
|
namespace
|
||||||
{
|
{
|
||||||
// True for the Kate actions that change which split pane is active: moving
|
// 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
|
// focus between panes, creating a split (Kate activates the new pane), or
|
||||||
// one of these fires we warp the mouse pointer onto the now-active pane so the
|
// closing a pane (Kate activates a neighbour). After one of these fires we warp
|
||||||
// cursor follows the focus (mouse-first UX).
|
// the mouse pointer onto the now-active pane so the cursor follows the focus
|
||||||
|
// (mouse-first UX).
|
||||||
bool isPaneFocusAction(const QString &id)
|
bool isPaneFocusAction(const QString &id)
|
||||||
{
|
{
|
||||||
return id == QLatin1String("go_left_split_view")
|
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_next_split_view")
|
||||||
|| id == QLatin1String("go_prev_split_view")
|
|| id == QLatin1String("go_prev_split_view")
|
||||||
|| id == QLatin1String("view_split_vert")
|
|| 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.
|
// Bracket pairs understood by the double-click selection feature.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue