The extra gap after the point on Xiaomi is one of the most annoying trifles faced by smartphone users of the brand, a problem that arises both on the stock keyboard MIUI and in third-party applications like Gboard or SwiftKey, the reason for this is aggressive autocorrection, which blindly follows the rules of typography, without considering the context of messages in messengers or social networks.
In this article, we will look at all the possible causes of double spaces and offer 5 proven ways to eliminate them, from basic keyboard settings to deep system edits. We will focus on the nuances for different versions of MIUI (12 to 14) and popular models like Redmi Note 12, POCO X5 or Xiaomi 13. If you are tired of manually removing unnecessary spaces, read on.
Why Xiaomi has a gap after the point: the main reasons
The problem with automatic spaces after punctuation marks is not unique to Xiaomi, but it is also found on other Android devices. However, on smartphones with MIUI, this bug is more common due to the features of the firmware.
- πΉ Stock keyboard settings MIUI: By default, the system keyboard includes the option βAdd a space after punctuation marksβ, and it is disabled in an unobvious way.
- πΉ Autocorrection in Gboard/SwiftKey: Third-party keyboards also sin unnecessary spaces, especially if previously used on iOS, where double indentations are the standard.
- πΉ Systemic fonts MIUI: Some users note that after changing the font (for example, to Mi Sans or Roboto), the spaces begin to duplicate.
- πΉ Language packet conflict: If multiple languages are installed in the system (for example, Russian) + English, keyboard may confuse the rules of space allocation.
I wonder what on POCO-Devices with βcleanβ Android (for example, POCO F5 HyperOS, the problem is less common, and it indirectly confirms that the root of the evil lies in the company's refinements. MIUI.
Method 1: Disabling the autospaces in the MIUI stock keyboard
To start with, the system keyboard settings work on all Xiaomi devices with MIUI 12-14, including Redmi, POCO and flagship series, and the path to settings may vary slightly depending on the firmware version.
Instructions:
- Open any field to enter text (for example, notes or a message in Telegram).
- Touch the gear badge (βοΈ) on the keyboard to open its settings.
- Go to the Text Input section β Autocorrection.
- Find the option after punctuation marks (or Add a space after a point) and turn it off.
- Reboot the keyboard: Close all applications and open the input field again.
If the option is missing from your MIUI version, try the alternative path: Settings β Additional β Language and Input β MIUI Keyboard β Text Settings.
Open field for entering text|Found a gear icon on the keyboard|Disabled option "Space after punctuation marks"|Keyboard reset-->
β οΈ Note: On some devices (e.g. Xiaomi) 12T s MIUI 13.5) The option may be called Automatic Space Setting. If it doesn't work, move on to the next method.
Method 2: Setting up Gboard or SwiftKey for Xiaomi
If you use a keyboard from Google or Microsoft, the algorithm of actions will be different. These applications have their own autocorrect mechanisms, which sometimes conflict with the system settings of MIUI.
For Gboard:
- Open Settings β System β Language and input β Virtual Keyboard β Gboard.
- Select Correction of text β Auto gaps.
- Turn off the option to Add a space after punctuation marks.
- In the same section, check if the option to Remove Excess Spaces is enabled β it should be active.
For SwiftKey:
- Go to the keyboard settings through the icon βοΈ input-pane.
- Go to Correction. β Automatic activities.
- Turn off the gap after punctuation marks and the double gap for the point.
If after these manipulations, the spaces still appear, try resetting the keyboard to factory: in Gboard this is done through Settings β Reset β Reset all settings.
π‘
Before resetting your keyboard settings, export your custom dictionary (in Gboard: Dictionary β Export) to save your commonly used words and abbreviations.
Method 3: Change the system font (for advanced users)
Unexpectedly, it is a fact that on some Xiaomi devices (especially with MIUI 13/14), the gaps after the point disappear after changing the system font, which is due to the fact that fonts like Mi Sans or Mi Lui have non-standard character metrics, which is why the system mistakenly adds unnecessary indentations.
How to change font:
- Download a font in.ttf format (like Roboto or Open Sans) and place it in the Download folder.
- Install the iFont app from Google Play.
- Open iFont, select the downloaded font and click Install.
- In the window that appears, select Mi Font Installer (if not, upgrade to the latest version).
- Confirm the installation and restart the device.
| font | Probability of solving the problem | Features |
|---|---|---|
| Roboto | ββββ | Standard Android font, minimal bugs |
| Open Sans | βββ | Good readability, but there may be problems with Cyrillic |
| Noto Sans | ββββ | Supports all languages, optimized for Android |
| Mi Sans (stock) | β | Often causes bugs with gaps |
β οΈ Note: Change of font may lead to resetting of design themes MIUI (Before the procedure, make a backup copy through Settings. β The phone. β Backup.
Method 4: Reset keyboard settings via ADB (for technical users)
If none of the previous methods worked, the problem may lie in the damaged keyboard settings at the system level, in which case the reset via ADB (Android Debug Bridge), which requires connecting the smartphone to the computer and basic knowledge of working with the command line.
Instructions:
- Turn on Developer Mode on Xiaomi: go to Settings β About Phone and 7 times click on the MIUI version.
- Return to Settings β Additional β For developers and enable USB debugging.
- Connect your phone to your PC, install ADB Tools (you can download from the official Android website).
- Open the command line (Windows) or terminal (macOS/Linux) and type:
adb shell pm clear com.miui.miuikeyboard
adb shell pm clear com.google.android.inputmethod.latinThese commands reset the MIUI and Gboard stock keyboard settings respectively. Once executed, restart the device.
What if the ADB canβt see the device?
Method 5: Manual editing of system files (for experienced ones only)
This is an extreme method to use if everyone else fails, which involves editing MIUI configuration files, which can lead to unstable system operation, and we recommend backing up the data before starting.
The editing will require:
- Root access (you can get it through Magisk or OrangeFox Recovery)
- A file manager with root support (such as Root Explorer or FX File Explorer).
- Backup copy of the original files.
Instructions:
- Open Root Explorer and go to /system/usr/keychars/.
- Find Generic.kcm.bin and qwerty.kcm.bin files (names may vary depending on the model).
- Copy them to a safe place (for example, on a PC).
- Open files in a hex editor (for example, HxD for Windows).
- Find the bytes that are responsible for the space after the point (usually a sequence of 20 0A or 20 0D), and replace them with 0A or 0D.
- Save files and restart the device.
β οΈ Attention: Incorrect editing of system files can lead to loss of keyboard functionality or even to bootloop ( looped reboot.
π‘
Editing system files is the most radical method, and only use it if other methods have failed and you are prepared for the potential risks.
Additional tips: how to avoid gaps in the future
Even after the problem is fixed, the extra spaces may reappear, such as after a MIUI update or a reset. To minimize the risks, follow these guidelines:
- π± Turn off automatic keyboard updates: Go to Google Play, find Gboard or Keyboard MIUI, press three points β Turn off auto-update.
- π Clean the keyboard cache regularly: In the application settings, select Storage β Clear the cache.
- π Use alternative keyboards: For example, Fleksy or Chroom β they are less aggressive in autocorrection.
- π Check the settings after the update MIUI: Often after the firmware update, the keyboard parameters are reset.
If you are actively using messengers like WhatsApp or Viber, pay attention to the auto-replacement settings in the applications themselves β sometimes they duplicate spaces regardless of the system settings.