Keycodes for the MarkdownX are not working for some keyboard layouts.

romerozeroguy

May 17th, 2022 12:57 PM

Hello guys, I detected a 'bug' when you use another keyboard layout that en_US, the '/' to display the commands dropdown is not working, this is because the javascript code use the deprecated event.KeyCode Keyboard event from mozilla docs.

For my keyboard layout, the '/' is detected as 'Digit 7' that is a e.which value of 55 instead of the 191 that handles the markdown-x javascript.

I changed directly into the markdown-x.blade.php but the other codes are not matching so I need to rewrite this piece of code. I could update for my personal case but if a new update appears I'll lost it (something similar to modify a 3rd party file on vendor folder)

I'm working on a compabitility solution for all keyboard layouts on browser but if you're already working on it I prefer to wait until the next update.

Thanks in advance.

tnylea

May 22nd, 2022 07:27 AM

Hey Romerozeroguy,

Thanks for letting us know about the issue. Would you mind sharing the solution that you found and modified on your end.

I'll look into this during the coming week and see if I can find a permanent solution for this and get it published in a new release.

Thanks! Hope you're having a great day!