mirror of
https://github.com/microsoft/terminal.git
synced 2025-12-11 13:36:29 -06:00
uia text
This commit is contained in:
parent
c47a353ba4
commit
c4529aa935
@ -309,6 +309,16 @@ namespace winrt::Microsoft::Terminal::Settings::Editor::implementation
|
|||||||
KeyChordViewModelList().Append(*kbdVM);
|
KeyChordViewModelList().Append(*kbdVM);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
winrt::hstring CommandViewModel::ActionNameTextBoxAutomationPropName()
|
||||||
|
{
|
||||||
|
return RS_(L"Actions_Name/Text");
|
||||||
|
}
|
||||||
|
|
||||||
|
winrt::hstring CommandViewModel::ShortcutActionComboBoxAutomationPropName()
|
||||||
|
{
|
||||||
|
return RS_(L"Actions_ShortcutAction/Text");
|
||||||
|
}
|
||||||
|
|
||||||
void CommandViewModel::_RegisterKeyChordVMEvents(Editor::KeyChordViewModel kcVM)
|
void CommandViewModel::_RegisterKeyChordVMEvents(Editor::KeyChordViewModel kcVM)
|
||||||
{
|
{
|
||||||
const auto id = ID();
|
const auto id = ID();
|
||||||
|
|||||||
@ -108,6 +108,10 @@ namespace winrt::Microsoft::Terminal::Settings::Editor::implementation
|
|||||||
|
|
||||||
void AddKeybinding_Click();
|
void AddKeybinding_Click();
|
||||||
|
|
||||||
|
// UIA text
|
||||||
|
winrt::hstring ActionNameTextBoxAutomationPropName();
|
||||||
|
winrt::hstring ShortcutActionComboBoxAutomationPropName();
|
||||||
|
|
||||||
til::typed_event<IInspectable, Editor::ArgWrapper> PropagateColorSchemeRequested;
|
til::typed_event<IInspectable, Editor::ArgWrapper> PropagateColorSchemeRequested;
|
||||||
til::typed_event<IInspectable, Editor::ArgWrapper> PropagateColorSchemeNamesRequested;
|
til::typed_event<IInspectable, Editor::ArgWrapper> PropagateColorSchemeNamesRequested;
|
||||||
til::typed_event<IInspectable, Editor::ArgWrapper> PropagateWindowRootRequested;
|
til::typed_event<IInspectable, Editor::ArgWrapper> PropagateWindowRootRequested;
|
||||||
|
|||||||
@ -45,6 +45,10 @@ namespace Microsoft.Terminal.Settings.Editor
|
|||||||
event Windows.Foundation.TypedEventHandler<Object, ArgWrapper> PropagateColorSchemeNamesRequested;
|
event Windows.Foundation.TypedEventHandler<Object, ArgWrapper> PropagateColorSchemeNamesRequested;
|
||||||
event Windows.Foundation.TypedEventHandler<Object, ArgWrapper> PropagateWindowRootRequested;
|
event Windows.Foundation.TypedEventHandler<Object, ArgWrapper> PropagateWindowRootRequested;
|
||||||
event Windows.Foundation.TypedEventHandler<Object, Object> FocusContainer;
|
event Windows.Foundation.TypedEventHandler<Object, Object> FocusContainer;
|
||||||
|
|
||||||
|
// UI side (edit command page, automation property names)
|
||||||
|
String ActionNameTextBoxAutomationPropName { get; };
|
||||||
|
String ShortcutActionComboBoxAutomationPropName { get; };
|
||||||
}
|
}
|
||||||
|
|
||||||
runtimeclass ArgWrapper : Windows.UI.Xaml.Data.INotifyPropertyChanged
|
runtimeclass ArgWrapper : Windows.UI.Xaml.Data.INotifyPropertyChanged
|
||||||
|
|||||||
@ -645,6 +645,7 @@
|
|||||||
Grid.Column="1"
|
Grid.Column="1"
|
||||||
Width="300"
|
Width="300"
|
||||||
HorizontalAlignment="Left"
|
HorizontalAlignment="Left"
|
||||||
|
AutomationProperties.Name="{x:Bind ViewModel.ActionNameTextBoxAutomationPropName}"
|
||||||
PlaceholderText="{x:Bind ViewModel.DisplayName, Mode=OneWay}"
|
PlaceholderText="{x:Bind ViewModel.DisplayName, Mode=OneWay}"
|
||||||
Text="{x:Bind ViewModel.Name, Mode=TwoWay}" />
|
Text="{x:Bind ViewModel.Name, Mode=TwoWay}" />
|
||||||
<TextBlock x:Uid="Actions_ShortcutAction"
|
<TextBlock x:Uid="Actions_ShortcutAction"
|
||||||
@ -654,6 +655,7 @@
|
|||||||
<ComboBox Grid.Row="1"
|
<ComboBox Grid.Row="1"
|
||||||
Grid.Column="1"
|
Grid.Column="1"
|
||||||
VerticalAlignment="Center"
|
VerticalAlignment="Center"
|
||||||
|
AutomationProperties.Name="{x:Bind ViewModel.ShortcutActionComboBoxAutomationPropName}"
|
||||||
ItemsSource="{x:Bind ViewModel.AvailableShortcutActions, Mode=OneWay}"
|
ItemsSource="{x:Bind ViewModel.AvailableShortcutActions, Mode=OneWay}"
|
||||||
SelectedItem="{x:Bind ViewModel.ProposedShortcutAction, Mode=TwoWay}" />
|
SelectedItem="{x:Bind ViewModel.ProposedShortcutAction, Mode=TwoWay}" />
|
||||||
<TextBlock x:Uid="Actions_Arguments"
|
<TextBlock x:Uid="Actions_Arguments"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user