Extension shortcuts precedence over website and browser shortcuts.
- Edited
Looks like there's not really a standard way browsers are handling this, everyone does their own thing based on their own shortcuts and their own view on whether they should be overridable or not.
Example:
This code from a related stackoverflow question: https://stackoverflow.com/a/10919725
In Orion:
cmd+L/M/T/N/Q/F/D/... is overridden by the website, the browser no longer works as expected for these shortcuts.
In Safari:
cmd+L/M/T/N/Q/... is not overridden, the browser still works as expected for these shortcuts.
cmd+F/D/... is overridden by the website, the browser no longer works as expected for these shortcuts.
In Chrome:
cmd+T/N/Q/... is not overridden, the browser works as expected for these shortcuts.
cmd+L/M/... is overridden by the website, the browser no longer works as expected for these shortcuts.
- Edited
There's no consensus across browsers on which shortcuts are too important to allow overriding by websites and which shortcuts should be overridable to allow for productivity in web apps So…
Suggestion:
Don't allow websites to override any browser shortcuts by default.
Let users use the "Website settings" tool to enable overriding of browser shortcuts in web apps they know, trust and want to be productive in.
Making this a website setting would also help prevent any attempts at using the hijacking of keyboard shortcuts to trick users into thinking they're writing in a real password prompt and not some malicious website's attempt to style a webpage as an OS feature.
I'm not sure how to get consensus on this, but I find it really annoying when I am on this site and I want to pen a new window (cmd-N) that I get a new post pane instead. It extends to other sites too. Should we get votes on the main site?
There really is no clue for what constitutes browser usability with shortcuts. I guess there should be some shortcut for toggling between the browser and website only if the website is using up some shortcuts, perhaps some indicator icon should show if the website takes up some shortcuts and an option to disable it can be made also via a shortcut. This way is in my view less confusing than having a separate website/browser per-website-shortcut setting as I hate that.
This is sort of like how Vimium works. It uses it's own commands first, then if INSERT mode is turned on by pressing 'i', then it will use only the website's shortcuts. So it is… another insert mode atop another insert mode for the browser…
I would suggest setting a global shortcut of… command+" ' " as this shortut appears to not have been taken by anything. I would also suggest making this optional meaning that it should pass through the website shortcuts by default, because most users use the website shortcuts and they are not that tech-savvy. Make it a single tick in the preferences menu, as most users will not care much about this unnecessary complexity. So in short command+" ' " toggles the website insert mode, and it's status is also saved and it shows itself through an audio-esque icon in the address bar whenever it is toggled with some… keyboard icon.
Vlad No the issue with this bug report in the first place is that command+m should minimize the tab as netflix does not have any shortcut which utilizes command+m, as checked with Safari. Somehow Orion does not let the website ignore the "command" key or rather know that it is being toggled and subsequently Orion does not know what to do with the next "m" so it passes it through the website confusingly. The expected behavior is that upon pressing command, it should check if the website has any shortcuts for that specific key that is going to be pressed next, but if not then pass it through the browser. But that does not appear to happen because in Orion, it mutes the tab instead of minimizing it while in Safari, it minimizes the tab immediately signifying an issue with how shortcuts work.
Bug Report
Steps to reproduce:
- Open Discord
- Open it's keyboard shortcut menu, repeat this for Safari and Orion to compare.
- See that pressing command+F does not show the find bar.
Expected behavior:
Show find bar
Orion and macOS:
MacOS 12 Orion 107
Fortrikka I think this should go back to the discussion about passing keys to web app or browser. We did not come up with a list of shortcuts that the browser must always handle, and which it should pass to the webview. It seems that you would assume that cmd-f would be passed to web app while cmd-n for example not. In order to make this we will need to come up with a list.
Merge this then
Steps to reproduce:
Pressing the command+shift+? shortcut just shows the help menu for Discord's shortcut, but I want to enter the help menu search so that I can enter a specific shortcut name from the menu bar.
Expected behavior:
For it to show it properly and place the native operating system's multi-shortcuts first checking for transparency from the other website, otherwise the website can take precedence over on certain shortcuts such as command+d. And other transparent shortcuts such as command+shift+?'s precedence of command+? on discord.
Orion and macOS:
Orion 108.1
MacOS 12