FilipePS / Traduzir-paginas-web

Translate your page in real time using Google or Yandex
https://addons.mozilla.org/pt-BR/firefox/addon/traduzir-paginas-web/
Mozilla Public License 2.0
4.58k stars 554 forks source link

Hotkeys/Shortcuts settings switch control and command keys, macos #444

Open raydricko opened 2 years ago

raydricko commented 2 years ago

When setting a hotkey/shortcut to be "Ctrl-Q", it reads as set to "Ctrl-Q", but assigns the hotkey/shortcut to "Cmd-Q".

macOS 10.15.7, firefox 88.01, Translate Web Pages 9.5.3

FilipePS commented 2 years ago

What if you try to set the hotkey to cmd+q which hotkey is assigned?

As far as I know Ctrl on windows is equivalent to cmd on mac os. So maybe things are working as expected, albeit confusingly.

raydricko commented 2 years ago

It is not possible to set cmd+q as the hotkey as it is the global command to quit an application (trying to set it as the hotkey leads to firefox asking if I'm sure I want to close the application and all the tabs).

Many functions translate with windows Ctrl and macOS cmd (for example, to close a tab on windows is Ctrl+w and the equivalent on macOS is cmd+w. When I use Windows on my Macbook Pro, I have it set so the Ctrl and cmd keys are switched, so there is more consistency (in windows terms this means switching the Ctrl and Win). However, there are also differences: In Windows, to switch between desktops the hotkey is Win+Ctrl+Left or Right whereas on macOS it is cmd+Left or Right. From the Wikipedia article on the Windows Key:

If one plugs a Windows keyboard into a macOS computer, the Windows key acts as the ⌘ Command. This swaps the locations of ⌘ Command and Alt from standard Macintosh keyboards. Plugging a Macintosh keyboard into a Windows (or Linux) machine makes ⌘ Command act like ⊞ Win, again with the locations swapped with Alt from standard.

Perhaps a solution would be to have the Windows Win key and macOS Ctrl be equivalent somehow? (sorry I am no programmer so I'm not sure if such a thing would be possible). Thank you for looking into the issue.