4 overrides of KeyboardShortcut
System.Windows.Forms (4)
System\Windows\Forms\Accessibility\Control.ControlAccessibleObject.cs (1)
292public override string? KeyboardShortcut
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxChildDropDownButtonUiaProvider.cs (1)
90public override string? KeyboardShortcut => GetKeyboardShortcutInternal((VARIANT)GetChildId()).ToNullableStringAndFree();
System\Windows\Forms\Controls\TabControl\TabPage.TabAccessibleObject.cs (1)
114public override string? KeyboardShortcut => GetKeyboardShortcutInternal((VARIANT)GetChildId()).ToNullableStringAndFree();
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.ToolStripItemAccessibleObject.cs (1)
70public override string KeyboardShortcut
34 references to KeyboardShortcut
System.Windows.Forms (7)
System\Windows\Forms\Accessibility\AccessibleObject.cs (5)
214/// Determines if <see cref="GetKeyboardShortcutInternal(VARIANT)"/> can be called without calling <see cref="KeyboardShortcut"/> 615UIA_PROPERTY_ID.UIA_AccessKeyPropertyId => (VARIANT)(KeyboardShortcut ?? string.Empty), 1268*pszKeyboardShortcut = new(KeyboardShortcut); 2170: new(KeyboardShortcut); 2180: new(child.KeyboardShortcut);
System\Windows\Forms\Controls\DataGridView\DataGridView.DataGridViewEditingPanelAccessibleObject.cs (1)
77UIA_PROPERTY_ID.UIA_AccessKeyPropertyId => this.TryGetOwnerAs(out Panel? owner) && owner.AccessibilityObject.KeyboardShortcut is { } shortcut
System\Windows\Forms\Controls\UpDown\UpDownBase.UpDownEdit.UpDownEditAccessibleObject.cs (1)
38public override string? KeyboardShortcut => _parent.AccessibilityObject.KeyboardShortcut;
System.Windows.Forms.Tests (27)
System\Windows\Forms\AccessibleObjects\AccessibleObjectTests.cs (17)
25Assert.Null(accessibleObject.KeyboardShortcut); 620Assert.Null(accessibleObject.KeyboardShortcut); 639Assert.Null(accessibleObject.KeyboardShortcut); 660Assert.Null(accessibleObject.KeyboardShortcut); 686Assert.Null(accessibleObject.KeyboardShortcut); 705Assert.Null(accessibleObject.KeyboardShortcut); 724Assert.Null(accessibleObject.KeyboardShortcut); 743Assert.Null(accessibleObject.KeyboardShortcut); 764Assert.Null(accessibleObject.KeyboardShortcut); 785Assert.Null(accessibleObject.KeyboardShortcut); 806Assert.Null(accessibleObject.KeyboardShortcut); 1941.Setup(a => a.KeyboardShortcut) 1946mockAccessibleObject.Verify(a => a.KeyboardShortcut, Times.Once()); 1963.Setup(a => a.KeyboardShortcut) 1971.Setup(a => a.KeyboardShortcut) 1994mockAccessibleObjectChild1.Verify(a => a.KeyboardShortcut, Times.Exactly(child1CallCount)); 1995mockAccessibleObjectChild2.Verify(a => a.KeyboardShortcut, Times.Exactly(child2CallCount));
System\Windows\Forms\AccessibleObjects\Control.ControlAccessibleObjectTests.cs (6)
1666Assert.Equal("Alt+c", accessibleObject.KeyboardShortcut); 1670Assert.Null(accessibleObject.KeyboardShortcut); 1683Assert.Equal("Alt+l", accessibleObject.KeyboardShortcut); 1687Assert.Null(accessibleObject.KeyboardShortcut); 1691Assert.Equal("Alt+c", accessibleObject.KeyboardShortcut); 1696Assert.Equal("Alt+l", accessibleObject.KeyboardShortcut);
System\Windows\Forms\AccessibleObjects\DateTimePicker.DateTimePickerAccessibleObjectTests.cs (2)
368string keyboardShortcut = dateTimePicker1.AccessibilityObject.KeyboardShortcut; 372keyboardShortcut = dateTimePicker2.AccessibilityObject.KeyboardShortcut;
System\Windows\Forms\AccessibleObjects\UpDownBase.UpDownEdit.UpDownEditAccessibleObjectTests.cs (2)
99Assert.Equal(upDown.AccessibilityObject.KeyboardShortcut, accessibleObject.KeyboardShortcut);