This is a migrated thread and some comments may be shown as answers.

Ctrl+F4 opens the combo box

1 Answer 101 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Patrick
Top achievements
Rank 2
Iron
Iron
Iron
Patrick asked on 04 Aug 2017, 02:38 PM

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.

1 Answer, 1 is accepted

Sort by
0
Kalin
Telerik team
answered on 09 Aug 2017, 07:26 AM
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.
Tags
ComboBox
Asked by
Patrick
Top achievements
Rank 2
Iron
Iron
Iron
Answers by
Kalin
Telerik team
Share this question
or