Make open/save dialogs block window input while open (fixes #4583)#4590
Make open/save dialogs block window input while open (fixes #4583)#4590uiryuu merged 2 commits intoiina:developfrom
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:
|
low-batt
left a comment
There was a problem hiding this comment.
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 |
low-batt
left a comment
There was a problem hiding this comment.
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. |
uiryuu
left a comment
There was a problem hiding this comment.
I think the proposed the changes are reasonable.
iina#4590) * Attach the following open/save dialogs to parent windows so that arrow 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) * Make Save Playlist dialog into a sheet
iina#4590) * Attach the following open/save dialogs to parent windows so that arrow 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) * Make Save Playlist dialog into a sheet
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.