lmi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi-commits] [lmi] master 5ee4b04 13/46: Improve comments in DatumSeque


From: Greg Chicares
Subject: [lmi-commits] [lmi] master 5ee4b04 13/46: Improve comments in DatumSequenceEditorEvtHandler
Date: Wed, 22 Jul 2020 11:05:11 -0400 (EDT)

branch: master
commit 5ee4b04d7f63c2b8fbeab2eb1d2b4fc20c09a02b
Author: Vadim Zeitlin <vadim@tt-solutions.com>
Commit: Vadim Zeitlin <vadim@tt-solutions.com>

    Improve comments in DatumSequenceEditorEvtHandler
    
    No real changes, just make comments more clear and fix some minor
    problems in them.
---
 census_view.cpp | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/census_view.cpp b/census_view.cpp
index 264f46a..b95f597 100644
--- a/census_view.cpp
+++ b/census_view.cpp
@@ -1028,8 +1028,9 @@ class DatumSequenceEditorEvtHandler
                     return;
                     }
 
-                // Just handle the event to not allow other handlers
-                // process it. The editor window opened in OnKeyDown.
+                // Just handle, i.e. don't skip, the event to not let any other
+                // handlers process it. The editor window was already opened in
+                // UponKeyDown() handler.
                 break;
             default:
                 event.Skip();
@@ -1049,9 +1050,8 @@ class DatumSequenceEditorEvtHandler
                     return;
                     }
 
-                // We should handle the event in DatumSequenceEditorEvtHandler
-                // because otherwise the grid cell editor event handler will
-                // handle Enter.
+                // Open the editor window when Alt-Enter is pressed instead of
+                // just closing the editor, as would be done by default.
                 entry_->open_editor();
                 break;
             default:



reply via email to

[Prev in Thread] Current Thread [Next in Thread]