Skip to content

Commit

Permalink
fix: breakage by textual 0.81
Browse files Browse the repository at this point in the history
  • Loading branch information
kraanzu committed Oct 1, 2024
1 parent 1308189 commit d607b1a
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions smassh/ui/tui.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,19 +70,21 @@ def show_results(self, event: ShowResults) -> None:

data_parser.add_stats(event.stats, event.failed)

async def handle_key(self, event: events.Key) -> None:
async def handle_key(self, event: events.Key) -> bool:
visible = self.query_one(ContentSwitcher).visible_content
if visible:
await visible.handle_key(event)

return True


class Smassh(App):
CSS_PATH = str(TARGET_FILE)
SCREENS = {
"main": MainScreen(),
"theme": ThemePaletteScreen(),
"language": LanguagePaletteScreen(),
"confirm": ConfirmScreen(),
"main": MainScreen,
"theme": ThemePaletteScreen,
"language": LanguagePaletteScreen,
"confirm": ConfirmScreen,
}

def __init__(self, *args, **kwargs) -> None:
Expand Down

0 comments on commit d607b1a

Please sign in to comment.