Skip to content

Commit ec1b0dd

Browse files
fix: add keyboard controls for header (#205)
* fix: add keyboard controls for header/tree - Allow to use keyboard for header buttons - Allow to use arrows to open subtrees in the left panel * Revert left/right arrows control in tree view Using them prevents scrolling the window left/right * Follow codestyle, remove unnecessary code
1 parent a0494a9 commit ec1b0dd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/uproot_browser/tui/header.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@
1414

1515

1616
class HeaderCloseIcon(textual.widgets.Button):
17-
def on_click(self) -> None:
17+
def on_button_pressed(self, _: textual.widgets.Button.Pressed) -> None:
1818
self.app.exit()
1919

2020

2121
class HeaderHelpIcon(textual.widgets.Button):
2222
app: Browser
2323

24-
def on_click(self) -> None:
24+
def on_button_pressed(self, _: textual.widgets.Button.Pressed) -> None:
2525
self.app.action_help()
2626

2727

0 commit comments

Comments
 (0)