Open PaszaVonPomiot opened 7 years ago
Copying over the solution proposal:
I won't be able to help with js as I'm not a programmer but hopefuly this will be useful. It appears that SimpleMDE has the same issue. First we have to understand that in JavaScript we use two parameters to determine which modifier key has been pressed and those are:
key
Ctrl
Alt
AltGr
(right alt)Location
Left
Right
If we press AltGr using standard English (US) keyboard then all browsers will detect:
Key 'Alt
' is down. Location: Right
However if we press AltGr using Polish (programmers) or Romanian keyboards then js will detect:
Control
' is down. Location: Left
Key 'Alt
' is down. Location: Right
Control
' is down. Location: Left
Key 'AltGraph
' is down. Location: Right
So the solution I think will be to check not only for key that is being pressed but also for its location. In our case the numbered list should be triggered by:
Ctrl + Alt (only left) +L
Snippet to test keypresses Numeric key locations
Thanks!
have the same issues, so no progress?
Hi,
The issue is that when you use some keyboard layouts like Polish (programmers) or Romanian (Moldavian) and want to type "Ł" letter (which is typed by pressing Right Alt + L) the SimpleMDE triggers numbered list instead.
Steps to reproduce
Solution proposition
TryGhost/Ghost#8687
Thanks!