mirror of
https://github.com/rr-/pq-cli.git
synced 2026-09-29 06:44:00 -06:00
ui/curses: fix arrows not working in game view
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
import curses
|
||||
import typing as T
|
||||
|
||||
from pqcli.ui.curses.util import KEYS_DOWN, KEYS_UP
|
||||
|
||||
from ..util import Choice
|
||||
from .base import Widget
|
||||
|
||||
@@ -49,11 +51,11 @@ class Menu(Widget):
|
||||
choice.callback()
|
||||
return
|
||||
|
||||
if key in set(map(ord, "jJ")) | {curses.KEY_DOWN}:
|
||||
if key in KEYS_DOWN:
|
||||
self.next()
|
||||
return
|
||||
|
||||
if key in set(map(ord, "kK")) | {curses.KEY_UP}:
|
||||
if key in KEYS_UP:
|
||||
self.prev()
|
||||
return
|
||||
|
||||
|
||||
Reference in New Issue
Block a user