This is a mod made for Minecraft 26.1+, which provides compatibility with Fcitx5.
When using IME in Minecraft, pressing a key that is also a game hotkey (e.g. Tab, Enter) causes the key event to be handled by both the input method and the game.
And then you'll be interrupted. That's crazy. So I wrote this mod, in order to deal with this disrupting problem.
We provide a highly configurable IMBlocker, with a visual element selector.
Besides, we added IME support for native Wayland environment.
Native wayland support is currently disabled for 26.x. Please refer to the 1.20.x-1.21.x-0.2.5 branch for its source code.
Only Fabric Loader is required to run this mod.
Cloth Config is required too. To access the config screen, you need to install Mod Menu as well.
To build the mod from its source code, run the following commands:
git clone https://github.com/NLR-DevTeam/Fcitx5-Enhancer --depth 1 --recursive
cd Fcitx5-Enhancer
./gradlew build --no-daemonThen you'll find the artifacts inside fabricWrapper/build/libs.
This mod relies on native libraries to implement its functionalities.
And the built-in libraries were compiled for Linux x86_64 (glibc 2.31, from Debian 11).
If you are using a different architecture (e.g. aarch64) or an incompatible system, you must compile them yourself.
Requirements:
- A valid JDK installation (with JNI headers)
- CMake 3.10+
Run this in your terminal:
cd Fcitx5-Enhancer/src/native/base
mkdir build && cd build
cmake ..
makeEventually you'll see a shared library file named libfcitx5_detector.so inside the build folder.
Then, place it into folder .minecraft/.fcitx5-enhancer.
This project is licensed under MIT License.