Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

That's pretty trippy, I have my caps lock globally disabled (mapped to ctrl) in X config, but inside that v86 window, caps lock works. And it uses some hardcoded (US) keymap, too.

I'm surprised, I didn't think browsers would receive those detailed keycodes.



`event.key` returns the key with the mappings, e.g. "E"

`event.keyCode` returns the physical key, e.g. "KeyE"




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: