protected override void OnAccessKey(AccessKeyEventArgs e) { var ancestor = this.FindAncestor <MenuController>(); ancestor.IsSubmenuOpen = true; Keyboard.Focus(ancestor); }
protected override void OnAccessKey(AccessKeyEventArgs e) { if (e != null) { if (string.Equals(e.Key, RenameShortcutKey.RenameOverloads, StringComparison.OrdinalIgnoreCase)) { this.OverloadsCheckbox.IsChecked = !this.OverloadsCheckbox.IsChecked; } else if (string.Equals(e.Key, RenameShortcutKey.SearchInComments, StringComparison.OrdinalIgnoreCase)) { this.CommentsCheckbox.IsChecked = !this.CommentsCheckbox.IsChecked; } else if (string.Equals(e.Key, RenameShortcutKey.SearchInStrings, StringComparison.OrdinalIgnoreCase)) { this.StringsCheckbox.IsChecked = !this.StringsCheckbox.IsChecked; } else if (string.Equals(e.Key, RenameShortcutKey.PreviewChanges, StringComparison.OrdinalIgnoreCase)) { this.PreviewChangesCheckbox.IsChecked = !this.PreviewChangesCheckbox.IsChecked; } else if (string.Equals(e.Key, RenameShortcutKey.Apply, StringComparison.OrdinalIgnoreCase)) { this.Commit(); } } }
protected override void OnAccessKey( AccessKeyEventArgs e ) { if( TextBox != null ) TextBox.Focus(); base.OnAccessKey( e ); }
protected override void OnAccessKey(AccessKeyEventArgs e) { if (_textBox != null) { _textBox.Focus(); } }
/// <summary>Called when the access key for a <see cref="T:System.Windows.Controls.CheckBox" /> is invoked. </summary> /// <param name="e">The <see cref="T:System.Windows.Input.AccessKeyEventArgs" /> that contains the event data.</param> // Token: 0x0600433C RID: 17212 RVA: 0x001338AF File Offset: 0x00131AAF protected override void OnAccessKey(AccessKeyEventArgs e) { if (!base.IsKeyboardFocused) { base.Focus(); } base.OnAccessKey(e); }
/// <summary>Responds when the <see cref="P:System.Windows.Controls.AccessText.AccessKey" /> for this control is called. </summary> /// <param name="e">The event data for the <see cref="E:System.Windows.Input.AccessKeyManager.AccessKeyPressed" /> event.</param> // Token: 0x06005C27 RID: 23591 RVA: 0x0019E5F8 File Offset: 0x0019C7F8 protected override void OnAccessKey(AccessKeyEventArgs e) { if (e.IsMultiple) { base.OnAccessKey(e); return; } this.OnClick(); }
/// <summary> /// アクセラレータキーが押されたときに呼ばれます。 /// </summary> protected override void OnAccessKey(AccessKeyEventArgs e) { base.OnAccessKey(e); if (this.textBox != null) { this.textBox.Focus(); } }
protected override void OnAccessKey(AccessKeyEventArgs e) { if (e == null) { throw new NullReferenceException(); } base.OnAccessKey(e); Focus(); }
protected override void OnAccessKey(AccessKeyEventArgs e) { if (e.IsMultiple) { base.OnAccessKey(e); } else { RaiseClickEvent(new ExecuteRoutedEventArgs(ExecuteReason.Keyboard)); } }
/// <summary> /// The Access key for this control was invoked. /// </summary> protected override void OnAccessKey(AccessKeyEventArgs e) { if (e.IsMultiple) { base.OnAccessKey(e); } else { // Don't call the base b/c we don't want to take focus OnClick(); } }
protected override async void OnAccessKey(AccessKeyEventArgs e) { base.OnAccessKey(e); await this.xamlBridge.NavigateFocusAsync(CoreNavigationReason.AccessKey, new Rect(), Guid.Empty); }
/// <summary> /// The Access key for this control was invoked. /// </summary> protected override void OnAccessKey(AccessKeyEventArgs e) { SetFocus(); }
/// <summary> /// /// </summary> /// <param name="e"></param> protected override void OnAccessKey(AccessKeyEventArgs e) { base.OnAccessKey(e); }
/// <internalOnly> /// Forward the access key to our hosted ActiveX control ///</internalOnly> protected override void OnAccessKey(AccessKeyEventArgs args) { Debug.Assert(args.Key.Length > 0, "got an empty access key"); //Consider adding: HostedControl.ProcessKey(args.Key[0]); //used in winformshost // How do we pass this to the activex control - IOleControl.OnMnemonic? }
protected override void OnAccessKey(AccessKeyEventArgs e) { throw new NotImplementedException(); }
protected virtual void OnAccessKey(AccessKeyEventArgs e) { throw new NotImplementedException(); }
/// <summary>Responds when the <see cref="P:System.Windows.Controls.AccessText.AccessKey" /> for the <see cref="T:System.Windows.Controls.GroupBox" /> is pressed.</summary> /// <param name="e">The event information.</param> // Token: 0x06004E02 RID: 19970 RVA: 0x0015FA35 File Offset: 0x0015DC35 protected override void OnAccessKey(AccessKeyEventArgs e) { this.MoveFocus(new TraversalRequest(FocusNavigationDirection.First)); }
protected override void OnAccessKey(AccessKeyEventArgs e) { SearchTextBox.Focus(); }
/// <internalOnly> /// Forward the access key to our hosted ActiveX control ///</internalOnly> protected override void OnAccessKey(AccessKeyEventArgs args) { Debug.Assert(args.Key.Length > 0, "got an empty access key"); // }
/// <summary>Provides class handling for when an access key that is meaningful for this element is invoked. </summary> /// <param name="args">The event data to the access key event. The event data reports which key was invoked, and indicate whether the <see cref="T:System.Windows.Input.AccessKeyManager" /> object that controls the sending of these events also sent this access key invocation to other elements.</param> // Token: 0x0600616C RID: 24940 RVA: 0x00002137 File Offset: 0x00000337 protected override void OnAccessKey(AccessKeyEventArgs args) { }
protected override void OnAccessKey(AccessKeyEventArgs e) { LibrarySearchBox.Focus(); }
protected override void OnAccessKey(AccessKeyEventArgs e) { TargetLocationSearchTextBox.Focus(); }
/// <summary> /// Provides class handling for when an access key that is meaningful for this element is /// invoked. /// </summary> /// <param name="e"> /// The event data to the access key event. The event data reports which key was invoked, /// and indicate whether the <see cref="AccessKeyManager"/> object that controls the sending /// of these events also sent this access key invocation to other elements. /// </param> protected override void OnAccessKey(AccessKeyEventArgs e) { Activate(); }
/// <summary> /// The Access key for this control was invoked. /// </summary> protected override void OnAccessKey(AccessKeyEventArgs e) { IsAccessKeyOrAutomation = true; base.OnAccessKey(e); }
protected override void OnAccessKey(AccessKeyEventArgs e) { base.OnAccessKey(e); HandleUIAction(); }