git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1973
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
// These return TRUE if an event handler was found, FALSE otherwise (not processed)
virtual bool MSWOnChar(WXWORD wParam, WXLPARAM lParam, bool isASCII = FALSE);
// These return TRUE if an event handler was found, FALSE otherwise (not processed)
virtual bool MSWOnChar(WXWORD wParam, WXLPARAM lParam, bool isASCII = FALSE);
- virtual bool MSWOnKeyDown(WXWORD wParam, WXLPARAM lParam, bool isASCII = FALSE);
- virtual bool MSWOnKeyUp(WXWORD wParam, WXLPARAM lParam, bool isASCII = FALSE);
+ virtual bool MSWOnKeyDown(WXWORD wParam, WXLPARAM lParam);
+ virtual bool MSWOnKeyUp(WXWORD wParam, WXLPARAM lParam);
virtual bool MSWOnActivate(int flag, bool minimized, WXHWND activate);
virtual long MSWOnMDIActivate(long flag, WXHWND activate, WXHWND deactivate);
virtual bool MSWOnActivate(int flag, bool minimized, WXHWND activate);
virtual long MSWOnMDIActivate(long flag, WXHWND activate, WXHWND deactivate);
{
switch( event.KeyCode() )
{
{
switch( event.KeyCode() )
{
+ // VZ: commented out until somebody explains to me what it does
+#if 0
// Fix by Marcel Rasche to allow Alt-Ctrl insertion of special characters
case '{':
case '}':
// Fix by Marcel Rasche to allow Alt-Ctrl insertion of special characters
case '{':
case '}':
-/* Oh yes it will, because we also specify DLGC_WANTCHARS
- wxASSERT_MSG( m_windowStyle & wxTE_PROCESS_ENTER,
- "this text ctrl should never receive return" );
-*/
-
if ( (m_windowStyle & wxTE_MULTILINE) == 0 )
{
wxCommandEvent event(wxEVT_COMMAND_TEXT_ENTER, m_windowId);
if ( (m_windowStyle & wxTE_MULTILINE) == 0 )
{
wxCommandEvent event(wxEVT_COMMAND_TEXT_ENTER, m_windowId);
case WXK_TAB:
// only produce navigation event if we don't process TAB ourself or
// if it's a Shift-Tab keypress (we assume nobody will ever need
case WXK_TAB:
// only produce navigation event if we don't process TAB ourself or
// if it's a Shift-Tab keypress (we assume nobody will ever need
+
+ default:
+ event.Skip();
}
// don't just call event.Skip() because this will cause TABs and ENTERs
}
// don't just call event.Skip() because this will cause TABs and ENTERs