Skip to content

Commit

Permalink
fix bug about disabled Choice with shortcut_keys attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
weiduhuo committed Jan 9, 2024
1 parent 2df2655 commit c9bbcda
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 c9bbcda

Please sign in to comment.