Repl not working correctly with scandic keyboard layout
peksipatongeis opened this issue · 4 comments
Please fill in the following information:
- My programming background is in JavaScript and React
- I want to learn Elm because I want be more confident in refactoring front end
- I was confused by Repl not working properly with a scandic keyboard layout. Not being able to type
[]{}
characters in the interactive examples is quite an inconvenience.
The code that adds characters should just pass them along independent of keyboard layout. It is using event.key
behind the scenes.
Do you have any ideas of how I could reproduce this?
Do you have any browser extensions? What browser and OS are you using? Can you reproduce it in other browsers or other computers with the same keyboard?
Hi Evan,
I'm running macOS Catalina now, and it was the same with Mojave before I updated. Tried it with 3 different browsers and they all have the same problem. I asked my colleague to try it out and he has the same problem.
Browsers tested:
- Chrome 77.0.3865.120
- Firefox 70.0
- Safari 13.0.2 (15608.2.30.1.1)
You should be able to reproduce this by switching to a nordic keyboard layout, I'm using Finnish layout. I can type these characters with US / UK layout but the keys required to type them out are completely different on Nordic/Finnish layout.
[ = Option + 8
] = Option + 9
{ = Option + Shift + 8
} = Option + Shift + 9
Okay, I get it now! Thank you for the clarification!
I'll see if I can figure out a fix!
In the meantime, it should be possible to skip ahead to https://guide.elm-lang.org/install/elm.html and use elm repl
in the terminal. Sorry for the trouble! 😬