mirror of
https://github.com/github/spec-kit.git
synced 2026-01-30 12:42:02 +00:00
Merge pull request #568 from shyn/main
feat: Add emacs-style up/down keys
This commit is contained in:
@@ -194,9 +194,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
|
||||
|
||||
Reference in New Issue
Block a user