Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

It would be good to be able to set the "Finish" key combo for the Text input. #294

Open
garyrob opened this issue Jul 4, 2023 · 2 comments
Labels
Enhancement New feature or request

Comments

@garyrob
Copy link

garyrob commented Jul 4, 2023

Describe the problem

On MacOS, a text input area is usually exited when the user presses Return. It's pretty standard for option-Return to mean: "I don't want to exit; instead, I just want to enter a newline character".

But in a Questionary Text input, it says to use "Alt-Enter" to finsih. On the Mac keyboard, that translates to option-Return.

This violates muscle memory on a Mac, since a Mac user is used to using that combination to mean he does NOT want to finish, but instead just wants to enter a newline.

Describe the solution

It would be great if there was a way to set the key combination that would mean "just enter a newline" and the key combination that would mean "Finish". On a Mac, the latter would normally be just Return.

Alternatives considered

Leaving as-is is one alternative. As mentioned, that violates muscle on a mac.

Another alternative would be for the behavior on a mac to be different from other platforms. You could have the behavior default to "option-Return" to enter a newline, and Return to Finish.

I'm not sure, however, whether there are similar considerations for Linux or other Unixes. So I suggest just letting the programmer set the key combos. But if you could figure out what the key combos should be on each platform, in order to be intuitive on each one, that would be another good solution.

@garyrob garyrob added the Enhancement New feature or request label Jul 4, 2023
@garyrob
Copy link
Author

garyrob commented Jul 4, 2023

After writing the above, I realized that if one of the suggested changes were to be made, the instructions to the user (currently "(Finish with 'Alt+Enter' or 'Esc then Enter')") would also have to be programmable by the developer or set to platform-specific values. Just thought it was worth mentioning.

@jstrunk
Copy link

jstrunk commented Jul 25, 2024

Additionally, on my mac in the PyCharm terminal, neither option+enter nor Esc then Enter work for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants