I use a Hungarian keyboard:

Hungarian keyboard

If I press Alt Gr + Y, which should insert a > character, nothing happens. I have to press Alt Gr + . (dot) to achieve this.

This is really annoying when answering/writing questions, and this happens on every website related to Stack Exchange, including Stack Overflow, but nowhere else.

  • 2
    Does this happen to other (not SE related) sites too? Jan 13, 2013 at 20:57
  • @GamecatisToonKrijthe No.
    – anon
    Jan 13, 2013 at 21:07
  • This is caused by raw conversion from keyCode to character. The correct way is to use key, but key is not yet implemented in some browser (at least Firefox). I loled when I look at this: developer.mozilla.org/en-US/docs/DOM/KeyboardEvent (which, keyCode, key, charCode, char)
    – nhahtdh
    Jan 13, 2013 at 21:12
  • @nhahtdh keyCode is deprecated, since when?!
    – anon
    Jan 13, 2013 at 21:25
  • @DJDavid98: At least that's what MDN says. But even if it is not deprecated, the keyCode is system and implementation dependent, so I think it is most likely the reason.
    – nhahtdh
    Jan 13, 2013 at 21:28
  • I noticed you tagged Chrome, does the problem persist in other browsers?
    – Robotnik
    Jan 14, 2013 at 0:18
  • @Robotnik Yes it does.
    – anon
    Jan 14, 2013 at 14:33

1 Answer 1


This was essentially the same bug as WMD editor bug: German keyboard layout - "@" creates blockquote section. The browser reports Alt-Gr as being the key combination Alt+Ctrl, and the editor didn't quite handle that. The fix from the other bug didn't fix this particular case, since handling the undo/redo controls (including Ctrl+Y, which was the culprit here) happens in a different place than the rest of the keyboard shortcuts (like Ctrl+Q in the other issue).

This is fixed in the next build of the site (until then, you can confirm this by testing it on the PageDown demo page).

There are still some issues with the editor and Alt-Gr that I should fix at some point, but they should be minor.

You must log in to answer this question.