support L/R and U/down

This commit is contained in:
Peter D. Gray 2023-12-06 11:20:16 -05:00
parent 5131631de5
commit 6fce68aa76
No known key found for this signature in database
GPG Key ID: A2DCD558C2BE5D7C

View File

@ -88,10 +88,10 @@ class QRDisplaySingle(UserInteraction):
break
elif len(self.addrs) == 1:
continue
elif ch == '5' or ch == '7' or ch == KEY_UP:
elif ch in '57' + KEY_UP + KEY_LEFT:
if self.idx > 0:
self.idx -= 1
elif ch == '8' or ch == '9' or ch == KEY_DOWN:
elif ch in '89' + KEY_DOWN + KEY_RIGHT:
if self.idx != len(self.addrs)-1:
self.idx += 1
elif ch == KEY_HOME: