try:
if key == "q" or key == os.linesep:
exit(0)
- if key == "j":
+ elif key in ["l", "KEY_LEFT"]:
idx.forward(stack)
idx.setSide(0)
disp_card(stdscr, stack, headers, idx)
- if key == "k":
+ elif key in ["h", "KEY_RIGHT"]:
idx.back()
idx.setSide(0)
disp_card(stdscr, stack, headers, idx)
- if key == "l" or key == "h":
+ elif key in ["j", "k", "KEY_UP", "KEY_DOWN"]:
idx.flip()
disp_card(stdscr, stack, headers, idx)
except Exception: