Closed rainssong closed 1 year ago
I would like to understand this issue so I can replicate it on my computer. Is it related to pinyin?
KeyboardEvent.keyCode
is deprecated, but this might be fixable with KeyboardEvent.key
.
yep, when use pinyin, the enter means confirm english character(instead chinese character)
and event.key=='Enter' works
event.key === 'Enter'
seems to fix this issue on Firefox but not on Chrome. Might need to use the deprecated keyCode after all.
Fixed in 375b3c0 and cd48078
keyCode == 13 will fix this