Skip to content

Commit 50dd8d0

Browse files
committed
Remove universal=True from bindings in 5x5
Not only has universal not changed to priority, these bindings are on the screen and so have priority anyway. This means we can safely go back to how 5x5 was prior to 0.6.0.
1 parent 4310531 commit 50dd8d0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

examples/five_by_five.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -166,10 +166,10 @@ class Game(Screen):
166166
Binding("n", "new_game", "New Game"),
167167
Binding("question_mark", "push_screen('help')", "Help", key_display="?"),
168168
Binding("q", "quit", "Quit"),
169-
Binding("up,w,k", "navigate(-1,0)", "Move Up", False, universal=True),
170-
Binding("down,s,j", "navigate(1,0)", "Move Down", False, universal=True),
171-
Binding("left,a,h", "navigate(0,-1)", "Move Left", False, universal=True),
172-
Binding("right,d,l", "navigate(0,1)", "Move Right", False, universal=True),
169+
Binding("up,w,k", "navigate(-1,0)", "Move Up", False),
170+
Binding("down,s,j", "navigate(1,0)", "Move Down", False),
171+
Binding("left,a,h", "navigate(0,-1)", "Move Left", False),
172+
Binding("right,d,l", "navigate(0,1)", "Move Right", False),
173173
Binding("space", "move", "Toggle", False),
174174
]
175175
"""The bindings for the main game grid."""

0 commit comments

Comments
 (0)