Bind Return key to menus
This commit is contained in:
@ -1,4 +1,5 @@
|
||||
from enum import Enum, auto
|
||||
from typing import Any
|
||||
|
||||
|
||||
class Menu:
|
||||
@ -13,7 +14,7 @@ class Menu:
|
||||
def go_down(self) -> None:
|
||||
self.position = min(len(self.values) - 1, self.position + 1)
|
||||
|
||||
def validate(self) -> None:
|
||||
def validate(self) -> Any:
|
||||
return self.values[self.position]
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user