mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Drop 'h' as a help key01
I'm going to repurpos.e it
This commit is contained in:
@@ -19,7 +19,7 @@ class Help(Screen):
|
|||||||
"""The help screen for the application."""
|
"""The help screen for the application."""
|
||||||
|
|
||||||
#: Bindings for the help screen.
|
#: Bindings for the help screen.
|
||||||
BINDINGS = [("escape,space,q,h,question_mark", "app.pop_screen", "Close")]
|
BINDINGS = [("escape,space,q,question_mark", "app.pop_screen", "Close")]
|
||||||
|
|
||||||
def compose(self) -> ComposeResult:
|
def compose(self) -> ComposeResult:
|
||||||
"""Compose the game's help."""
|
"""Compose the game's help."""
|
||||||
@@ -120,7 +120,7 @@ class Game(Screen):
|
|||||||
#: The bindings for the main game grid.
|
#: The bindings for the main game grid.
|
||||||
BINDINGS = [
|
BINDINGS = [
|
||||||
Binding("n", "new_game", "New Game"),
|
Binding("n", "new_game", "New Game"),
|
||||||
Binding("h,question_mark", "app.push_screen('help')", "Help"),
|
Binding("question_mark", "app.push_screen('help')", "Help", key_display="?"),
|
||||||
Binding("q", "quit", "Quit"),
|
Binding("q", "quit", "Quit"),
|
||||||
Binding("up,w", "navigate(-1,0)", "Move Up", False),
|
Binding("up,w", "navigate(-1,0)", "Move Up", False),
|
||||||
Binding("down,s", "navigate(1,0)", "Move Down", False),
|
Binding("down,s", "navigate(1,0)", "Move Down", False),
|
||||||
|
|||||||
Reference in New Issue
Block a user