You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 18, 2021. It is now read-only.
The JavaScript used for Markdown keyboard shortcuts in textboxes seems to not respect different keyboard layouts and will conflict with the browser/OS cut and copy shortcut commands when on the Dvorak keyboard layout.
I'm using macOS 10.11 with Chrome 59, and I've noticed that when I try to hit Cmd + x or Cmd + c for cut and copy respectively, it instead triggers the bold and italicize Markdown shortcuts. This is because the physical key on my keyboard with a "B" printed on it maps to "X" in Dvorak, and "I" maps to "C". When I hit Cmd + (physical key B/"virtual" key X) for the cut command in Dvorak, it appears that the Javascript interprets it as Cmd + B and surrounds my highlighted text with ** ** in order to bold it. I assume that the JavaScript is looking at the physical key code rather than the "virtual" key code.
I'm not knowledgable on how key codes is actually implemented at the OS level and how it is exposed to user-level programs/JavaScript running in a browser, but this ticket seems to have an extremely detailed description of how it works on various OSs.
The text was updated successfully, but these errors were encountered:
The JavaScript used for Markdown keyboard shortcuts in textboxes seems to not respect different keyboard layouts and will conflict with the browser/OS cut and copy shortcut commands when on the Dvorak keyboard layout.
I'm using macOS 10.11 with Chrome 59, and I've noticed that when I try to hit Cmd + x or Cmd + c for cut and copy respectively, it instead triggers the bold and italicize Markdown shortcuts. This is because the physical key on my keyboard with a "B" printed on it maps to "X" in Dvorak, and "I" maps to "C". When I hit Cmd + (physical key B/"virtual" key X) for the cut command in Dvorak, it appears that the Javascript interprets it as Cmd + B and surrounds my highlighted text with
** **
in order to bold it. I assume that the JavaScript is looking at the physical key code rather than the "virtual" key code.I'm not knowledgable on how key codes is actually implemented at the OS level and how it is exposed to user-level programs/JavaScript running in a browser, but this ticket seems to have an extremely detailed description of how it works on various OSs.
The text was updated successfully, but these errors were encountered: