]> git.saurik.com Git - wxWidgets.git/commitdiff
Fix the fix for not sending two end label edit events
authorRobert Roebling <robert@roebling.de>
Thu, 31 Mar 2005 21:00:29 +0000 (21:00 +0000)
committerRobert Roebling <robert@roebling.de>
Thu, 31 Mar 2005 21:00:29 +0000 (21:00 +0000)
    because that fix prevented anyone from finishing the
    edit by keys.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33226 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/listctrl.cpp
src/generic/treectlg.cpp

index f02f3b99cc60f2fffcaf19bac13a7388666dcb42..5c5a6b521c89be50294d4872d96d02e9d88cd10b 100644 (file)
@@ -2147,7 +2147,7 @@ void wxListTextCtrl::OnKeyUp( wxKeyEvent &event )
 
 void wxListTextCtrl::OnKillFocus( wxFocusEvent &event )
 {
-    if ( !m_finished )
+    if ( !m_finished && !m_aboutToFinish  )
     {
         // We must finish regardless of success, otherwise we'll get
         // focus problems:
index 5a6c21a1b3a9b648a099544f7a7033ecd5d1eb8e..25d04b0dee37dbe9caeb28369bc7b79f475cd0fa 100644 (file)
@@ -415,7 +415,7 @@ bool wxTreeTextCtrl::AcceptChanges()
 
 void wxTreeTextCtrl::Finish()
 {
-    if ( !m_finished && !m_aboutToFinish )
+    if ( !m_finished  )
     {
         m_owner->ResetTextControl();
 
@@ -470,7 +470,7 @@ void wxTreeTextCtrl::OnKeyUp( wxKeyEvent &event )
 
 void wxTreeTextCtrl::OnKillFocus( wxFocusEvent &event )
 {
-    if ( !m_finished )
+    if ( !m_finished && !m_aboutToFinish )
     {
         // We must finish regardless of success, otherwise we'll get
         // focus problems: