3-keyboard-control #4

Merged
panki merged 4 commits from 3-keyboard-control into master 2024-05-18 15:54:26 +02:00
Showing only changes of commit 23c254a180 - Show all commits

View File

@ -88,6 +88,8 @@ class BingoBoard(Widget):
self.cursor_x -= 1 if self.cursor_x > 0 else 0 self.cursor_x -= 1 if self.cursor_x > 0 else 0
case 'right': case 'right':
self.cursor_x += 1 if self.cursor_x < 4 else 0 self.cursor_x += 1 if self.cursor_x < 4 else 0
case 'enter':
fields[self.fieldnum_from_cursor()].on_click()
fields[self.fieldnum_from_cursor()].set_highlighted(True) fields[self.fieldnum_from_cursor()].set_highlighted(True)