Moved wxCharhookEvent so that it sends the same
keycode as wxCharEvent. Removed wxDestroyWindowEvent as it crashes all the time. Corrcted wxTreeCtrl's interception of wxCharEvents as it misinterpreted "F5" for "Z" e.g. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15798 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -2616,11 +2616,14 @@ void wxGenericTreeCtrl::OnChar( wxKeyEvent &event )
|
||||
|
||||
default:
|
||||
// do not use wxIsalnum() here
|
||||
if ( !event.HasModifiers() && isalnum(keyCode) )
|
||||
if ( !event.HasModifiers() &&
|
||||
((keyCode >= '0' && keyCode <= '9') ||
|
||||
(keyCode >= 'a' && keyCode <= 'z') ||
|
||||
(keyCode >= 'A' && keyCode <= 'Z' )))
|
||||
{
|
||||
// find the next item starting with the given prefix
|
||||
char ch = (char)keyCode;
|
||||
|
||||
|
||||
wxTreeItemId id = FindItem(m_current, m_findPrefix + (wxChar)ch);
|
||||
if ( !id.IsOk() )
|
||||
{
|
||||
|
Reference in New Issue
Block a user