git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40223 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Alex Bligh 2006-07-21 15:05:44 +00:00
parent 189da67c55
commit d9b72d2540

View File

@ -265,7 +265,7 @@ bool wxVListBoxComboPopup::HandleKey( int keycode, bool saturate, wxChar unicode
value-=10;
StopPartialCompletion();
}
else if ( comboStyle && wxCB_READONLY )
else if ( comboStyle & wxCB_READONLY )
{
// Try partial completion
@ -426,7 +426,7 @@ void wxVListBoxComboPopup::OnKey(wxKeyEvent& event)
int comboStyle = m_combo->GetWindowStyle();
int keycode = event.GetKeyCode();
// Process partial completion key codes here, but not the arrow keys as the base class will do that for us
if ((comboStyle && wxCB_READONLY) &&
if ((comboStyle & wxCB_READONLY) &&
(keycode >= WXK_SPACE) && (keycode <=255) && (keycode != WXK_DELETE) && wxIsprint(keycode))
{
OnComboKeyEvent(event);