Vadim was asleep when he moved it out of HandleChar to the end of the
WM_KEY_DOWN case. <wink> It would never be true where the check was
before...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15084
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
#endif // VK_APPS
default:
#endif // VK_APPS
default:
- if ( m_lastKeydownProcessed )
- {
- // The key was handled in the EVT_KEY_DOWN and handling
- // a key in an EVT_KEY_DOWN handler is meant, by
- // design, to prevent EVT_CHARs from happening
- m_lastKeydownProcessed = FALSE;
- processed = TRUE;
- }
- else // do generate a CHAR event
- {
- processed = HandleChar((WORD)wParam, lParam);
- }
+ // do generate a CHAR event
+ processed = HandleChar((WORD)wParam, lParam);
case WM_SYSCHAR:
case WM_CHAR: // Always an ASCII character
case WM_SYSCHAR:
case WM_CHAR: // Always an ASCII character
- processed = HandleChar((WORD)wParam, lParam, TRUE);
+ if ( m_lastKeydownProcessed )
+ {
+ // The key was handled in the EVT_KEY_DOWN and handling
+ // a key in an EVT_KEY_DOWN handler is meant, by
+ // design, to prevent EVT_CHARs from happening
+ m_lastKeydownProcessed = FALSE;
+ processed = TRUE;
+ }
+ else
+ processed = HandleChar((WORD)wParam, lParam, TRUE);