phcode-dev / phoenix

Phoenix is a modern open-source Code Editor for the web, built for the browser.
https://phcode.dev
GNU Affero General Public License v3.0
1.52k stars 113 forks source link

Shortcuts with Czech (non-en?) keyboard don't work properly #1610

Open michaljerabek opened 2 months ago

michaljerabek commented 2 months ago

Describe the bug

Keyboard shortcuts don't work properly when keyboard language is set to Czech (CS/CES/CZ/CZE). For example Ctrl+Alt+S doesn't save files but writes a character đ, Ctrl+P shows Print dialog although I have set it to a different command.

Reproduction

  1. Set keyboard language to Czech.
  2. Edit a file.
  3. Press Ctrl+Alt+S to save all files.
  4. Files are not saved and a character đ is inserted into the opened file.

Expected behavior

It should work the same as with ENG language.

OS, Browser and Phoenix versions

  1. OS: Win 11
  2. Device: desktop
  3. Browser: FireFox, Edge, desktop app (All?)
  4. Version: 3.6.4+ (All?)

logs or debug stack trace if any

No response

Additional context

No response

abose commented 2 months ago

That is most likely a Windows feature for mainly non english keyboards. Ctrl alt is treated as alt gr in international keyboards.

https://www.reddit.com/r/windowsinsiders/s/OKzB8gte1y