tmbo / questionary

Python library to build pretty command line user prompts ✨Easy to use multi-select lists, confirmations, free text prompts ...
MIT License
1.52k stars 87 forks source link

Support for Mac keyboard layout in input prompt #360

Open zronghui opened 7 months ago

zronghui commented 7 months ago

Describe the problem

When using the input prompt to enter my first name, the instructions indicate to finish with ‘Alt+Enter’. However, on Mac computers, the ‘Alt’ key is replaced by the ‘Option’ key, and using ‘Option+Enter’ does not seem to work as expected. I would like to request support for the Mac keyboard layout in the input prompt.

Describe the solution

When using a Mac keyboard, pressing ‘Option+Enter’ should function the same as ‘Alt+Enter’ on a Windows keyboard, allowing the user to submit their input in the prompt.

Alternatives considered

No response

kiancross commented 2 months ago

Happy to review a PR which implements this.