mirror of
https://github.com/borgmatic-collective/borgmatic.git
synced 2026-07-22 02:03:01 +02:00
Fix focus on file preview widgets so key bindings for them work in the browse action.
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user