-
Notifications
You must be signed in to change notification settings - Fork 103
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
Added Return as shortcut to connect/login buttons. #1939
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
on the initial msui screen "return" does nothing for me, this is intended?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should use setFocus() of QPushButtons and use the space bar to execute it.
with the border around the button the user sees what is executed by the keyboard.
On the initial MSUI, I was unsure if "Return" should automatically connect to MSColab. The next two windows can be triggered by Return. I am not sure who tab/spacing relates to keyboard-shortcuts that we have for several functions/entries. E.g. "retrieve" in wms_control also has Return as keyboard shortcut. |
OK, instead of having a keyboard shortcut, you propose to set the focus to a sensible button. I am not sure we have used that somewhere. Most people do not use tab/space when they have a mouse. Having a shortcut is the "typical" power-user feature, I think. |
it is more both, enable return but "highlight" by setFocus the button which act. similiar as in picture one. Return/Enter means "cancel", and in the second Return/Enter means "send" |
The highlight typically refers to an act of "space" not "return". Also, typing in data, etc. will change the focus? In particular, one cannt enter text in chat, while the send button is focused...? |
maybe look also here how return/enter are introduced. Two different keys, but should behave identical. https://github.com/Open-MSS/MSS/blob/develop/mslib/msui/mscolab_chat.py#L53 |
Alternatively, we could focus on the server/login text-input-fields and also connect a "return" in there with a connect/login attempt...? |
I think we should have a clean behaviour. Differences are typicallly difficult to describe. Give "value" and "enter" is some common task I am agreeing with any solution which is then refactored on all the others. Just not a different behaviour. |
@joernu76 setFocus for login works, for the ConnectBtn also Disconnect can react on return. I don't know which one wins. |
Ah, the disconnect button should not be the same as the connect button, for a variety of reasons. |
Fix #1937 added a disconnect button login btn needs autodefault and focus
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can also work on this little (complicated) problem in a follow up.
We need to talk about this, because a "return"-shortcut is not the same as the focus, which defines what "space" is triggering...? |
Now you can use "space" and you can use "return" on buttons. I prefer that it is marked what gets done, simlilar to yes/no or the other buttons. |
after fixing everything up i have a slight idea about what you mean. The autoDefault is yet a bit beyond me, but setFocus makes sense, but was used a bit too freely in this MR. |
Fix #1937