0x10code icon indicating copy to clipboard operation
0x10code copied to clipboard

Enter/return is borked on Chrome/Mac OS.

Open hellige opened this issue 12 years ago • 1 comments

Tested in goforth: http://0x10co.de/hiwhx

Goforth expects enter to send the keycode spec'ed in the keyboard spec. 0x10co.de does generate that keycode, but then it also generates an extra 0x13. It looks like the key is being triggered through both the keydown event and the keypress event. The keypress event doesn't check keyMap, which explains why it's not being converted. But either way, it's extra.

Changing line 413 of ui.js to: if(e.which >= 37 && e.which <= 40 || e.which === 8 || e.which === 13) e.preventDefault(); fixes it.

hellige avatar May 06 '12 18:05 hellige

I have noticed the same thing.

Cheesier avatar May 08 '12 19:05 Cheesier