Skip to content

Ignore Backspace navigation if search bar has focus - #438

Open
fridrich wants to merge 2 commits into
linuxmint:masterfrom
fridrich:fix-backspace
Open

fridrich wants to merge 2 commits into
linuxmint:masterfrom
fridrich:fix-backspace

Conversation

@fridrich

@fridrich fridrich commented Oct 16, 2026 •

Copy link
Copy Markdown

The window-level key-press-event handler treats Backspace as "go back" (and leaves fullscreen via normal_mode()). It does this regardless of which widget has focus.

When searching channels, pressing Backspace to delete a typo in the search bar also navigates away from the current page, so you can't edit the search query. The same happens in the other text fields of the main window, such as the provider form (name, URL, …) and preferences (MPV options, user agent, …).

The handler now skips Backspace navigation when the focused widget is a Gtk.Entry, which includes the Gtk.SearchEntry search bar. The key then reaches the entry and deletes a character as usual. Backspace navigation everywhere else is unchanged.

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.

2 participants