Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions archinstall/tui/ui/components.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from __future__ import annotations

from collections.abc import Awaitable, Callable
from typing import Any, TypeVar, override
from typing import Any, ClassVar, TypeVar, override

from textual import work
from textual.app import App, ComposeResult
Expand All @@ -20,7 +20,7 @@


class BaseScreen(Screen[Result[ValueT]]):
BINDINGS = [ # noqa: RUF012
BINDINGS: ClassVar = [
Binding('escape', 'cancel_operation', 'Cancel', show=True),
Binding('ctrl+c', 'reset_operation', 'Reset', show=True),
]
Expand Down Expand Up @@ -97,7 +97,7 @@ def action_pop_screen(self) -> None:


class ConfirmationScreen(BaseScreen[ValueT]):
BINDINGS = [ # noqa: RUF012
BINDINGS: ClassVar = [
Binding('l', 'focus_right', 'Focus right', show=True),
Binding('h', 'focus_left', 'Focus left', show=True),
Binding('right', 'focus_right', 'Focus right', show=True),
Expand Down Expand Up @@ -317,7 +317,7 @@ def on_key(self, event: Key) -> None:


class TableSelectionScreen(BaseScreen[ValueT]):
BINDINGS = [ # noqa: RUF012
BINDINGS: ClassVar = [
Binding('j', 'cursor_down', 'Down', show=True),
Binding('k', 'cursor_up', 'Up', show=True),
]
Expand Down