Skip to content

Commit

Permalink
Fix focusing on new sidebar
Browse files Browse the repository at this point in the history
fixes #1137
  • Loading branch information
diegogangl committed Dec 1, 2024
1 parent e9233e1 commit 145bf5b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion GTG/gtk/browser/main_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -839,10 +839,13 @@ def focus_quickentry(self, action, param):

self.quickadd_entry.grab_focus()


def focus_sidebar(self, action, param):
"""Callback to focus the sidebar widget."""

self.sidebar_vbox.props.visible = True
self.tagtreeview.grab_focus()
self.sidebar.general_box.get_row_at_index(0).grab_focus()


def on_quickadd_focus_in(self, controller):
self.toggle_delete_accel(False)
Expand Down

0 comments on commit 145bf5b

Please sign in to comment.