mirror of
https://github.com/paradoxxxzero/butterfly.git
synced 2024-12-22 12:18:29 +00:00
34b6287e0c
this fixes #75 and #47, two bugs originated long long ago. 1. Added support for IME events `compositionstart` `compositionupdate` and `compositionend`. 2. Refactored some code to receive input events from a hidden textarea just as how `xterm.js` now does. This removes the need to set `contentEditable` on the body in order to receive IME compistion events, and also guides the IME input box correctly following the cursor. 3. Fixed CJK rendering. Forces "forceWidth" mode with double width on those known CJK ranges in Unicode. Corrected the placeholder logic of the force width mode. Note that some rare halfwidth CJK characters will still not render correctly without `force-unicode-width` enabled. If you see any issue, please enable the `--force-unicode-width` option. 4. Miscallaneous fixes for some problems after introducing the above change Tested on Firefox Nightly 62 on Linux and Chromium 67 on Linux, with `fcitx` as input method. |
||
---|---|---|
.. | ||
index.html | ||
motd |