Turn off insert a space after selecting a text prediction
Désactiver l’insertion d’un espace après la sélection d’une prédiction de texte
Explanation
This policy turns off the insert a space after selecting a text prediction option. This does not, however, prevent the user or an application from changing the setting programmatically.
The insert a space after selecting a text prediction option controls whether or not a space will be inserted after the user selects a text prediction candidate when using the on-screen keyboard.
If the policy is Enabled, then the option will be locked to not insert a space after selecting a text prediction.
If the policy is Disabled or Not Configured, then the user will be free to change the setting according to their preference.
Note that the availability and function of this setting is dependent on supported languages being enabled.
Ce paramètre de stratégie désactive l’option permettant d’insérer un espace après la sélection d’une prédiction de texte. Cela n’empêche toutefois pas l’utilisateur ou une application de modifier ce paramètre par programme.
L’option permettant d’insérer un espace après la sélection d’une prédiction de texte contrôle si un espace est ou non inséré après une prédiction de texte sélectionnée par l’utilisateur lors de l’utilisation du clavier visuel.
Si vous activez ce paramètre de stratégie, l’option est verrouillée pour ne pas insérer un espace après la prédiction de texte.
Si vous désactivez ce paramètre de stratégie ou ne le configurez pas, l’utilisateur peut modifier le paramètre selon ses préférences.
Notez que la disponibilité et la fonction de ce paramètre dépendent de l’activation des langues prises en charge.
Registry
HKEY_CURRENT_USER\Software\Policies\Microsoft\Control Panel\International- Value name
TurnOffInsertSpace
| State | Value written |
|---|---|
| Enabled | REG_DWORD = 1 |
| Disabled | REG_DWORD = 0 |
PowerShell
PowerShell commands that write to the registry what the policy would write. Values in angle brackets (<…>) must be replaced.
Writing directly to the registry bypasses Group Policy: if a GPO manages this value, it will be rewritten at the next gpupdate; otherwise the value stays in place (the "tattooing" effect). Prefer a GPO or, locally, LGPO.exe. Run PowerShell as administrator for HKLM. Some policies need a restart or gpupdate /force.
Enable
# Enable: Globalization/TurnOffInsertSpace
$k = 'HKCU:\Software\Policies\Microsoft\Control Panel\International'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'TurnOffInsertSpace' -Value 1 -Type DWordDisable
# Disable: Globalization/TurnOffInsertSpace
$k = 'HKCU:\Software\Policies\Microsoft\Control Panel\International'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'TurnOffInsertSpace' -Value 0 -Type DWordRevert to "Not configured"
# Revert to "Not configured": Globalization/TurnOffInsertSpace
$k = 'HKCU:\Software\Policies\Microsoft\Control Panel\International'
Remove-ItemProperty -Path $k -Name 'TurnOffInsertSpace' -ErrorAction SilentlyContinue