Skip to content

💫 Toolkit to help you get started with SDD or any other process!

feat: Add emacs-style up/down keys

shyn721ecc9bec96
diff --git a/src/specify_cli/__init__.py b/src/specify_cli/__init__.py
index 83d2fdf87..892386fd6 100644
--- a/src/specify_cli/__init__.py
+++ b/src/specify_cli/__init__.py
@@ -192,9 +192,9 @@ def get_key():
key = readchar.readkey()
# Arrow keys
- if key == readchar.key.UP:
+ if key == readchar.key.UP or key == readchar.key.CTRL_P:
return 'up'
- if key == readchar.key.DOWN:
+ if key == readchar.key.DOWN or key == readchar.key.CTRL_N:
return 'down'
# Enter/Return