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
"mpv Default" keyboard shortcuts display discrepancies in Preferences/Playback #4050
Comments
Hello, Best regards |
@Kergariou thank you! I was able to reproduce the issue by changing my input source to a French AZERTY keyboard. It looks like letters are ok, but numbers and symbols are off. This looks like a regression which was introduced in IINA 1.3.0. IINA 1.2.0 has the correct behavior. Will post back when I have more info. |
Congratulations for your work! |
This looks weird because I didn't find any change to the key binding handling logic between 1.2.0 and 1.3.0. I will investigate more today. I think it's critical and we should release a v1.3.2 soon to fix this problem. |
I built v1.2.0 on macOS 12.6 with Xcode 13. It still contains this bug. Something changed in the macOS SDK? |
Hi @Kergariou, I want to confirm that you are using a physical French AZERTY keyboard, right? Edit: |
Interesting. I checked the release timeline:
Must have been a Monterey thing. Which led me to discover this is actually a feature (video: starts at 5:23). How crazy is it that Apple releases critical documentation updates exclusively by video? Great way to ensure good attendance at your developer conferences, I guess ;) I will draft a PR. |
@svobs Nice! Thanks a lot. I'll merge it soon. However, I'm still thinking about whether IINA’s default key shortcuts are suitable for non-US key layouts. If the user needs to press |
This makes sense, though I'm probably not the best person to answer it. It looks like the mpv project grappled with the same problem, but ended up just giving up and not trying to support other keyboards. But at the same time, it seems Apple's solution doesn't always make sense, and would also leave us with the problem of having to figure out what keys Apple remapped them to each time, so that we can be consistent when displaying the Key Bindings UI. Maybe try to use locale-specific versions of the built-in input conf files? Only the user's currently set locale would be displayed, and it wouldn't be editable by them anyway. Each localization could rely on community input, sort of like how other parts of the UI are localized using Crowdin. Though I don't know how realistic it would be to judge one over another, it's the best option I can think of. |
Yes, I confirm ! I am using a French AZERTY keyboard, and I was using the ']' before. |
I would expect Apple's Human Interface Guidelines to have an extensive discussion of this, but I only found the following from the keyboard-shortcuts section:
A better discussion can be found in the documentation for the method applicationShouldAutomaticallyLocalizeKeyEquivalents:
The "if you allow someone to customize your app’s shortcuts" applies to IINA. Disabling this new AppKit feature is the correct fix. I had checked AppKit Release Notes for macOS Monterey 12 for this kind of unexpected change. But Apple did not mention this change. Need to remember to check the What's new in AppKit web site. |
Fix has been merged into develop. |
Fixed |
System and IINA version:
Expected behavior:
The accelerating/decelerating speed shortcuts for "mpv Default" are the same in the "Preferences…" panel and in the menu "Playback".
Actual behavior:
The accelerating/decelerating speed shortcuts for "mpv Default" are "[, ], {, }" in the "Preferences…" panel and "*, $, ¨" in the "Playback" menu.
Furthermore, the shortcuts for "reducing speed 0.9" and "back to 1.0" are not displayed in the "Playback" menu.
The text was updated successfully, but these errors were encountered: