-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Make open/save dialogs block window input while open (fixes #4583) #4590
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
Conversation
…w key navigation works inside them instead of activating menu items: (1) "Load external audio file", (2) "Load external subtitle" (Subtitles menu), (3) "Load subtitle..." (Quick Settings button), (4) "Save downloaded subtitle" (Subtitles menu)
0b64733
to
a9e0eb5
Compare
I too am not a fan of sheets, but… On the question of what the HIG has to say, Panels says:
The HIG section on sheets can be found here. I did not find the HIG that helpful. Looking at the behavior of Applied to IINA that suggests operations such as loading an external subtitle file should be a sheet as it is to be applied to a specific window. This certainly is a significant change that will be noticed by users. The As a side issue, that portion of the HIG also contains the following which IINA is violating:
|
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.
The menu item Save Current Playlist…
under the File
menu still exhibits the the problem.
This is very interesting. I suppose it's a special case because its action is attached to
Added a new commit to include this.
Ah, do you mean that |
No, it was this part of the HIG requirement I was thinking of:
Which means the menu item |
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.
Pulled latest commit and tested. Changes look good.
By the way I'm now using the GitHub CLI to checkout PRs:
The CLI automatically handles the case where the author has forced pushed changes to the PR. |
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.
I think the proposed the changes are reasonable.
Description:
This fixes the use of arrow key navigation in the following open/save dialogs:
Some users were complaining that mpv bindings were getting activated in response to arrow keys when they wanted to use them to navigate within the file picker dialog. This ensures that they will work, but it comes at some cost. They now use Apple's tyrannical modal dialog state, which clings onto the window and won't let the user do anything with it until the dialog is dismissed. I'm not a fan, although using it is probably adheres more closely to Apple's HIG than using an independent window.