Beispiel #1
0
        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();
         }
     }
 }
Beispiel #3
0
    protected override void OnAccessKey( AccessKeyEventArgs e )
    {
      if( TextBox != null )
        TextBox.Focus();

      base.OnAccessKey( e );
    }
Beispiel #4
0
 protected override void OnAccessKey(AccessKeyEventArgs e)
 {
     if (_textBox != null)
     {
         _textBox.Focus();
     }
 }
Beispiel #5
0
 /// <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);
 }
Beispiel #6
0
 /// <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();
 }
Beispiel #7
0
        /// <summary>
        /// アクセラレータキーが押されたときに呼ばれます。
        /// </summary>
        protected override void OnAccessKey(AccessKeyEventArgs e)
        {
            base.OnAccessKey(e);

            if (this.textBox != null)
            {
                this.textBox.Focus();
            }
        }
Beispiel #8
0
 protected override void OnAccessKey(AccessKeyEventArgs e)
 {
     if (e == null)
     {
         throw new NullReferenceException();
     }
     base.OnAccessKey(e);
     Focus();
 }
Beispiel #9
0
 protected override void OnAccessKey(AccessKeyEventArgs e)
 {
     if (e.IsMultiple)
     {
         base.OnAccessKey(e);
     }
     else
     {
         RaiseClickEvent(new ExecuteRoutedEventArgs(ExecuteReason.Keyboard));
     }
 }
Beispiel #10
0
 /// <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();
     }
 }
Beispiel #11
0
    protected override async void OnAccessKey(AccessKeyEventArgs e)
    {
        base.OnAccessKey(e);

        await this.xamlBridge.NavigateFocusAsync(CoreNavigationReason.AccessKey, new Rect(), Guid.Empty);
    }
Beispiel #12
0
 /// <summary>
 /// The Access key for this control was invoked.
 /// </summary>
 protected override void OnAccessKey(AccessKeyEventArgs e)
 {
     SetFocus();
 }
Beispiel #13
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="e"></param>
 protected override void OnAccessKey(AccessKeyEventArgs e)
 {
     base.OnAccessKey(e);
 }
Beispiel #14
0
 /// <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?
 }
Beispiel #15
0
 protected override void OnAccessKey(AccessKeyEventArgs e)
 {
     throw new NotImplementedException();
 }
Beispiel #16
0
 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));
 }
Beispiel #18
0
 protected override void OnAccessKey(AccessKeyEventArgs e)
 {
     SearchTextBox.Focus();
 }
Beispiel #19
0
 /// <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");
     //
 }
Beispiel #20
0
 /// <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)
 {
 }
Beispiel #21
0
 protected override void OnAccessKey(AccessKeyEventArgs e)
 {
     LibrarySearchBox.Focus();
 }
Beispiel #22
0
 protected override void OnAccessKey(AccessKeyEventArgs e)
 {
     TargetLocationSearchTextBox.Focus();
 }
Beispiel #23
0
 /// <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();
 }
Beispiel #24
0
        /// <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();
 }