+ if (m_lastKeydownProcessed) {
+ // The key was handled in the EVT_KEY_DOWN. Handling a key in an
+ // EVT_KEY_DOWN handler is meant, by design, to prevent EVT_CHARs
+ // from happening, so just bail out at this point.
+ m_lastKeydownProcessed = FALSE;
+ return TRUE;
+ }
+