Ctrl+F4 opens the combo box

2 posts, 0 answers
  1. Patrick
    Patrick avatar
    382 posts
    Member since:
    Aug 2012

    Posted 04 Aug Link to this post

    Hello,

    When the focus is on a RadComboBox, pressing Ctrl+F4 opens it.

    From the documentation, F4 should open / close it, not Ctrl+F4.

    This bug is annoying, because Ctrl+F4 is the standard shortcut to close a tab or a pane.

  2. Kalin
    Admin
    Kalin avatar
    1279 posts

    Posted 09 Aug Link to this post

    Hello Patrick,

    RadComboBox is designed to behave identical to the WPF ComboBox in this scenario. However you could easily modify this behavior by inheriting from RadComboBox and overriding the HandleKeyDown method:

    public class CustomComboBox: RadComboBox
    {
        protected override bool HandleKeyDown(Key systemKey, int platformKeyCode)
        {
            if (systemKey == Key.F4 && Keyboard.Modifiers == ModifierKeys.Control)
            {
                return false;
            }
     
            return base.HandleKeyDown(systemKey, platformKeyCode);
        }
    }

    Hope this will help you.

    Regards,
    Kalin
    Progress Telerik
    Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
Back to Top