-
Notifications
You must be signed in to change notification settings - Fork 69
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
Ignore mac folder prefs, fix tab focus on find/'end of document' messagebox #92
base: master
Are you sure you want to change the base?
Conversation
… of doc msgbox Signed-off-by: Daniel Kettle <[email protected]>
Thanks a lot for this refinement. Why is the QMessageBox created without the 'this' parent? |
FWIW, IMHO this PR might be trying to solve the wrong problem. Native macOS message boxes don't support focus switching either, so it doesn't seem sensible to add for this one message box only. Focus doesn't even seem to be the issue here, but rather: Other issues with this change in its current form:
All the above combined, my take on this would be: @@ -2110,8 +2110,8 @@ void MainImpl::ActFindNext_activated() {
return;
}
if (QMessageBox::question(this, "Find text - QGit", "End of document "
- "reached\n\nDo you want to continue from beginning?", QMessageBox::Yes,
- QMessageBox::No | QMessageBox::Escape) == QMessageBox::No)
+ "reached.\n\nDo you want to continue from the beginning?", QMessageBox::Yes | QMessageBox::No,
+ QMessageBox::Yes) == QMessageBox::No)
return;
endOfDocument = true; |
Hmmm, I tried using
I am on Mac OS X 10.6.8. I tried defaulting to Yes as per your code, but I am still unable to tab to a different option, which is the point of this request. The parent problem has been solved as per above.
In the QT 5.3.2 docs, the entry for
I feel that the informative text matches the criteria set out by the documentation and how Mac handles that is how the designers meant it to be. I think we're both in agreement that the bold text doesn't look right; it's meant to emphasize and when everything is emphasized, nothing is and it fails as a UI cue. Default, no size Lastly, I only changed this instance of the dialog box because it was my immediate issue, and my changes to the QMessageBox went from a few lines to 8 lines and if it wasn't a desirable change, I didn't want to spend more time on it. One word from you and I'll fix up any other instances, I'll push my I appreciate you guys taking the time to view my changes seriously and help me to better the code. Honestly. |
IMHO apps shouldn't casually override platform conventions. Tab focusing is not a thing in macOS message boxes, so why add it to this one in particular? I'm also not sure why one would prefer Tab + a second keystroke when there's just two options. With the Yes-default one can just hit Enter or Esc.
Sure, but before putting form before semantics, maybe we should consider redesigning the whole message: It could be that it looks bad here mainly because of the new paragraph. Native Apple alerts don't seem to have these in their "Message" element. But they do have the question in there: https://developer.apple.com/design/human-interface-guidelines/macos/windows-and-views/alerts/ |
This got me thinking actually. I did a bit of searching and found that tabbing between buttons in a prompt is something that OS X disables by default. @mvf |
When using option+f to find content in a diff, when it prompts to search from the beginning of the file, I am unable to:
I also noticed that you use the bold heading text for the entire message, which, I'm ambivalent about.
I've created a branch that fixes the focus for me. It's likely a mac os x issue, an older one at that. I'll attach a screenshot momentarily of what it looks like.
Signed-off-by: Daniel Kettle [email protected]