mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Merge pull request #1360 from davep/5x5-cursor-keys
Make the cursor keys work in 5x5 again
This commit is contained in:
@@ -166,10 +166,10 @@ class Game(Screen):
|
||||
Binding("n", "new_game", "New Game"),
|
||||
Binding("question_mark", "push_screen('help')", "Help", key_display="?"),
|
||||
Binding("q", "quit", "Quit"),
|
||||
Binding("up,w,k", "navigate(-1,0)", "Move Up", False),
|
||||
Binding("down,s,j", "navigate(1,0)", "Move Down", False),
|
||||
Binding("left,a,h", "navigate(0,-1)", "Move Left", False),
|
||||
Binding("right,d,l", "navigate(0,1)", "Move Right", False),
|
||||
Binding("up,w,k", "navigate(-1,0)", "Move Up", False, universal=True),
|
||||
Binding("down,s,j", "navigate(1,0)", "Move Down", False, universal=True),
|
||||
Binding("left,a,h", "navigate(0,-1)", "Move Left", False, universal=True),
|
||||
Binding("right,d,l", "navigate(0,1)", "Move Right", False, universal=True),
|
||||
Binding("space", "move", "Toggle", False),
|
||||
]
|
||||
"""The bindings for the main game grid."""
|
||||
|
||||
Reference in New Issue
Block a user