This example demonstrates how to create a ComboBoxEdit that posts a value selected in the popup when the Tab key is pressed.
To enable this feature, we have created a ComboBoxEdit class descendant and overridden its ProcessPopupKeyDown method. In this method, we check which key was pressed by a user (we obtain it from the KeyEventArgs.Key property). If it's "Tab", we forcibly close the popup by using the ClosePopup method:
[C#]protectedoverrideboolProcessPopupKeyDown(KeyEventArgse){if(e.Key==Key.Tab){if(IsPopupOpen)ClosePopup(PopupCloseMode.Normal);}returnbase.ProcessPopupKeyDown(e);}