From d1d757a5d17db36db42cf7d083d427b8912cc8c7 Mon Sep 17 00:00:00 2001 From: Dan Helfman Date: Wed, 20 May 2026 20:01:03 -0700 Subject: [PATCH] Fix focus on file preview widgets so key bindings for them work in the browse action. --- borgmatic/actions/browse/view.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/borgmatic/actions/browse/view.py b/borgmatic/actions/browse/view.py index 675d3fbd..7b049e4c 100644 --- a/borgmatic/actions/browse/view.py +++ b/borgmatic/actions/browse/view.py @@ -249,6 +249,7 @@ class File_preview(textual.widgets.Static): self.repository = repository self.archive_name = archive_name self.file_path = file_path + self.can_focus = True super().__init__(classes='panel') self.border_title = f'{PATH_TYPE_ICONS[Path_type.FILE.value]} {self.file_path} preview' @@ -298,7 +299,6 @@ class Carousel(textual.containers.Horizontal): self.focused_panel = self.panels[previous_panel_index] self.focused_panel.styles.display = 'block' - self.focused_panel.can_focus = True self.focused_panel.focus() def action_next(self, option_id):