Skip to content

Commit 721ecc9

Browse files
committed
feat: Add emacs-style up/down keys
get up/down with ctrl+p/n for emacs-keybinding convention
1 parent f3d55cf commit 721ecc9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/specify_cli/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,9 +192,9 @@ def get_key():
192192
key = readchar.readkey()
193193

194194
# Arrow keys
195-
if key == readchar.key.UP:
195+
if key == readchar.key.UP or key == readchar.key.CTRL_P:
196196
return 'up'
197-
if key == readchar.key.DOWN:
197+
if key == readchar.key.DOWN or key == readchar.key.CTRL_N:
198198
return 'down'
199199

200200
# Enter/Return

0 commit comments

Comments
 (0)