wasmer-js icon indicating copy to clipboard operation
wasmer-js copied to clipboard

Wasm-terminal: Handle Composition / IME Events from Mobile Firefox and Sometimes Mobile Chrome

Open torch2424 opened this issue 5 years ago • 1 comments

It's actually a bug in firefox, so simply watch this bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1587934

torch2424 avatar Oct 10 '19 20:10 torch2424

Actually bug was resolved as it being a bug in the mdn example code? 🤔

All in all, I think there is some weird behavior going on in mobile browsers concerning this. For example: https://stackoverflow.com/questions/42011740/event-preventdefault-not-working-for-android-chrome . Thus, we need to set the input using JS on every keypress, suing something like xterm's onKey.

However, another case I am curious about is: https://davidwalsh.name/disable-autocorrect . Because this also does not seem to work in firefox mobile, but it may also be concerned with the mobile firefox composition mode?

Doing more reaserch, yes, it is all up to compisition mode: https://github.com/ianstormtaylor/slate/issues/2062 and https://blog.evanyou.me/2014/01/03/composition-event/

torch2424 avatar Oct 11 '19 22:10 torch2424

I don't believe this is relevant now that we've rewritten the package as @wasmer/sdk.

Michael-F-Bryan avatar Dec 13 '23 08:12 Michael-F-Bryan