Disable autocorrect for command, path and find text inputs (#11137)
## Summary of the Pull Request Disables autocorrect for command, path and find text inputs. Does not disable it for profile names, tab titles or colour scheme names. ## PR Checklist * [x] Closes #11133 * [x] CLA signed. If not, go over [here](https://cla.opensource.microsoft.com/microsoft/Terminal) and sign the CLA ## Validation Steps Performed Manually typed `bash -i -l` into the profile command text input and found it no longer auto-capitalised the I.
This commit is contained in:
parent
424414ec97
commit
43c76ee240
|
@ -239,6 +239,7 @@
|
||||||
VerticalAlignment="Center"
|
VerticalAlignment="Center"
|
||||||
CornerRadius="2"
|
CornerRadius="2"
|
||||||
FontSize="15"
|
FontSize="15"
|
||||||
|
IsSpellCheckEnabled="False"
|
||||||
KeyDown="TextBoxKeyDown"
|
KeyDown="TextBoxKeyDown"
|
||||||
PlaceholderForeground="{ThemeResource TextBoxPlaceholderTextThemeBrush}" />
|
PlaceholderForeground="{ThemeResource TextBoxPlaceholderTextThemeBrush}" />
|
||||||
|
|
||||||
|
|
|
@ -206,6 +206,7 @@
|
||||||
<StackPanel Orientation="Vertical">
|
<StackPanel Orientation="Vertical">
|
||||||
<StackPanel Orientation="Horizontal">
|
<StackPanel Orientation="Horizontal">
|
||||||
<TextBox IsEnabled="{x:Bind local:Converters.StringsAreNotEqual('desktopWallpaper', Appearance.BackgroundImagePath), Mode=OneWay}"
|
<TextBox IsEnabled="{x:Bind local:Converters.StringsAreNotEqual('desktopWallpaper', Appearance.BackgroundImagePath), Mode=OneWay}"
|
||||||
|
IsSpellCheckEnabled="False"
|
||||||
Style="{StaticResource TextBoxSettingStyle}"
|
Style="{StaticResource TextBoxSettingStyle}"
|
||||||
Text="{x:Bind local:Converters.StringFallBackToEmptyString('desktopWallpaper', Appearance.BackgroundImagePath), Mode=TwoWay, BindBack=Appearance.SetBackgroundImagePath}" />
|
Text="{x:Bind local:Converters.StringFallBackToEmptyString('desktopWallpaper', Appearance.BackgroundImagePath), Mode=TwoWay, BindBack=Appearance.SetBackgroundImagePath}" />
|
||||||
<Button x:Uid="Profile_BackgroundImageBrowse"
|
<Button x:Uid="Profile_BackgroundImageBrowse"
|
||||||
|
|
|
@ -46,7 +46,8 @@
|
||||||
|
|
||||||
<!-- Word Delimiters -->
|
<!-- Word Delimiters -->
|
||||||
<local:SettingContainer x:Uid="Globals_WordDelimiters">
|
<local:SettingContainer x:Uid="Globals_WordDelimiters">
|
||||||
<TextBox Style="{StaticResource TextBoxSettingStyle}"
|
<TextBox IsSpellCheckEnabled="False"
|
||||||
|
Style="{StaticResource TextBoxSettingStyle}"
|
||||||
Text="{x:Bind State.Globals.WordDelimiters, Mode=TwoWay}" />
|
Text="{x:Bind State.Globals.WordDelimiters, Mode=TwoWay}" />
|
||||||
</local:SettingContainer>
|
</local:SettingContainer>
|
||||||
|
|
||||||
|
|
|
@ -81,7 +81,8 @@
|
||||||
SettingOverrideSource="{x:Bind State.Profile.CommandlineOverrideSource, Mode=OneWay}"
|
SettingOverrideSource="{x:Bind State.Profile.CommandlineOverrideSource, Mode=OneWay}"
|
||||||
Visibility="{x:Bind local:Converters.InvertedBooleanToVisibility(State.Profile.IsBaseLayer), Mode=OneWay}">
|
Visibility="{x:Bind local:Converters.InvertedBooleanToVisibility(State.Profile.IsBaseLayer), Mode=OneWay}">
|
||||||
<StackPanel Orientation="Horizontal">
|
<StackPanel Orientation="Horizontal">
|
||||||
<TextBox Style="{StaticResource TextBoxSettingStyle}"
|
<TextBox IsSpellCheckEnabled="False"
|
||||||
|
Style="{StaticResource TextBoxSettingStyle}"
|
||||||
Text="{x:Bind State.Profile.Commandline, Mode=TwoWay}" />
|
Text="{x:Bind State.Profile.Commandline, Mode=TwoWay}" />
|
||||||
<Button x:Uid="Profile_CommandlineBrowse"
|
<Button x:Uid="Profile_CommandlineBrowse"
|
||||||
Click="Commandline_Click"
|
Click="Commandline_Click"
|
||||||
|
@ -99,6 +100,7 @@
|
||||||
<StackPanel Orientation="Vertical">
|
<StackPanel Orientation="Vertical">
|
||||||
<StackPanel Orientation="Horizontal">
|
<StackPanel Orientation="Horizontal">
|
||||||
<TextBox IsEnabled="{x:Bind State.Profile.UseCustomStartingDirectory, Mode=OneWay}"
|
<TextBox IsEnabled="{x:Bind State.Profile.UseCustomStartingDirectory, Mode=OneWay}"
|
||||||
|
IsSpellCheckEnabled="False"
|
||||||
Style="{StaticResource TextBoxSettingStyle}"
|
Style="{StaticResource TextBoxSettingStyle}"
|
||||||
Text="{x:Bind State.Profile.StartingDirectory, Mode=TwoWay}" />
|
Text="{x:Bind State.Profile.StartingDirectory, Mode=TwoWay}" />
|
||||||
<Button x:Name="StartingDirectoryBrowse"
|
<Button x:Name="StartingDirectoryBrowse"
|
||||||
|
@ -120,6 +122,7 @@
|
||||||
SettingOverrideSource="{x:Bind State.Profile.IconOverrideSource, Mode=OneWay}">
|
SettingOverrideSource="{x:Bind State.Profile.IconOverrideSource, Mode=OneWay}">
|
||||||
<StackPanel Orientation="Horizontal">
|
<StackPanel Orientation="Horizontal">
|
||||||
<TextBox FontFamily="Segoe UI, Segoe MDL2 Assets"
|
<TextBox FontFamily="Segoe UI, Segoe MDL2 Assets"
|
||||||
|
IsSpellCheckEnabled="False"
|
||||||
Style="{StaticResource TextBoxSettingStyle}"
|
Style="{StaticResource TextBoxSettingStyle}"
|
||||||
Text="{x:Bind State.Profile.Icon, Mode=TwoWay}" />
|
Text="{x:Bind State.Profile.Icon, Mode=TwoWay}" />
|
||||||
<Button x:Uid="Profile_IconBrowse"
|
<Button x:Uid="Profile_IconBrowse"
|
||||||
|
|
Loading…
Reference in a new issue