wxOwnerDrawnComboBox: handle Home and End keys as native control does.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63863 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík 2010-04-05 17:18:58 +00:00
parent 174b5c87bc
commit 10265e6c41

View File

@ -291,6 +291,16 @@ bool wxVListBoxComboPopup::HandleKey( int keycode, bool saturate, wxChar unicode
value-=10;
StopPartialCompletion();
}
else if ( keycode == WXK_HOME || keycode == WXK_NUMPAD_HOME )
{
value=0;
StopPartialCompletion();
}
else if ( keycode == WXK_END || keycode == WXK_NUMPAD_END )
{
value=itemCount-1;
StopPartialCompletion();
}
else if ( keychar && (comboStyle & wxCB_READONLY) )
{
// Try partial completion