Closed kappa-maintainer closed 1 year ago
Can you run the spotlessApply
gradle task to reformat the code?
Connection to spotless is a bit unstable here, so I removed it to speedup gradle
I got some other idea when I dealing with book signing. I will mark this PR ready to review once it's done
The wrapper approach is hard to handle NEI and has obvious input delay, so I switched to the current one. It works by adding an imeOn flag to Display and refuse non-char event when it is true. An IME char Queue is also added to Keyboard to bypass the limited size of keyEventChars[]. The imeOn is switched whenever common IME switching keybind detected or F12 is pressed, the detail of this part may need further test and improvement.
This approach is tricky and need further testing by #chinese-general This PR also contain a new line breaking algorithm based on icu4j, for which the Mojang version was excluded.