]> git.saurik.com Git - wxWidgets.git/blobdiff - src/os2/textctrl.cpp
Fix for mousewheel events when it is set to page mode instead of lines.
[wxWidgets.git] / src / os2 / textctrl.cpp
index c663907618a8ff7f78d32c31b1920555132665f0..3949c8f7872e9cd48c3713876b1cc80d27008af8 100644 (file)
@@ -340,7 +340,6 @@ wxString wxTextCtrl::GetValue() const
         if (*zStr == '\r')
             *zStr = '\n';
     }
-    sStr = zStr;
     return sStr;
 } // end of wxTextCtrl::GetValue
 
@@ -385,6 +384,14 @@ void wxTextCtrl::Clear()
     ::WinSetWindowText(GetHwnd(), "");
 } // end of wxTextCtrl::Clear
 
+bool wxTextCtrl::EmulateKeyPress(
+  const wxKeyEvent&                 rEvent
+)
+{
+    SetFocus();
+    return(wxTextCtrlBase::EmulateKeyPress(rEvent));
+} // end of wxTextCtrl::EmulateKeyPress
+
 // ----------------------------------------------------------------------------
 // Clipboard operations
 // ----------------------------------------------------------------------------