Fix text input and completion in wxComboCtrl and wxOwnerDrawnComboBox.
authorVáclav Slavík <vslavik@fastmail.fm>
Mon, 5 Apr 2010 17:19:04 +0000 (17:19 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Mon, 5 Apr 2010 17:19:04 +0000 (17:19 +0000)
commitc765e6fb9df639bb4e65a8824ed13a42f457027b
treed2951b1ee7870dbd2b789083281cef9e8f70a1d6
parent10265e6c41be28f3f460b78cac205cf02b7e3546
Fix text input and completion in wxComboCtrl and wxOwnerDrawnComboBox.

Both wxEVT_KEY_DOWN and wxEVT_CHAR must be handled and only the latter
used for completion (or any characters input). Don't make incorrect
assumptions about wxEVT_CHAR keycodes either, it's only the Unicode
character and printability that matter.

Otherwise, completion in readonly controls wouldn't work correctly
for e.g. numbers on numpad or non-ASCII characters.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63864 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
include/wx/combo.h
include/wx/odcombo.h
src/common/combocmn.cpp
src/generic/odcombo.cpp