Skip to content

feat: use Tab key to switch between split panes#3720

Open
KonTy wants to merge 1 commit intolinuxmint:masterfrom
KonTy:feature/tab-split-pane
Open

feat: use Tab key to switch between split panes#3720
KonTy wants to merge 1 commit intolinuxmint:masterfrom
KonTy:feature/tab-split-pane

Conversation

@KonTy
Copy link

@KonTy KonTy commented Mar 6, 2026

Summary

When split view is active (F3), pressing Tab switches focus between the two panes. When split view is not active, Tab behaves normally (default GTK focus traversal).

Changes

  • nemo-window.c: Added a Tab key handler in nemo_window_key_press_event that checks for an available next pane via nemo_window_get_next_pane() and calls nemo_window_pane_grab_focus() on it

Design decisions

  • The handler runs before the extra_window_keybindings loop and before GTK's default key-press processing, so Tab is intercepted before it gets consumed by the focus chain
  • Only bare Tab (no modifiers) triggers the switch — Shift+Tab, Ctrl+Tab etc. are unaffected
  • When there is no split view, Tab falls through to GTK's default behavior

Inspired by #3648

When split view is active (two panes visible), pressing Tab switches
focus to the other pane. When split view is not active, Tab behaves
normally (GTK default focus traversal).

The handler runs before GTK's default key-press processing so that
Tab is intercepted before it gets consumed by the focus chain.

Inspired by: linuxmint#3648
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant