Skip to content

Commit

Permalink
fix: disabled Choice binding shortcut_key (#334)
Browse files Browse the repository at this point in the history
  • Loading branch information
weiduhuo committed Jan 11, 2024
1 parent e74e9fa commit d21ba3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion questionary/prompts/select.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ def _(event):
"for movement are disabled. "
"This choice is not reachable.".format(c.title)
)
if isinstance(c, Separator) or c.shortcut_key is None:
if isinstance(c, Separator) or c.shortcut_key is None or c.disabled:
continue

# noinspection PyShadowingNames
Expand Down

0 comments on commit d21ba3e

Please sign in to comment.