From 1ec412529982f5860445023495e6c3d915e14c84 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Tue, 21 Aug 2007 23:25:23 -0400 Subject: Pruned C++ code, added additional comments. Modified C++ code structure to be more consistent throughout. Also added comments for functions that handle key events, indicating which (hard-coded) keys trigger what actions. --- src/find_replace.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/find_replace.c') diff --git a/src/find_replace.c b/src/find_replace.c index 4d31e178..ebd35de8 100644 --- a/src/find_replace.c +++ b/src/find_replace.c @@ -97,6 +97,9 @@ static int get_flags() { return flags; } +/** Find entry key event. + * Enter - Find next or previous. + */ static bool fe_keypress(GtkWidget *, GdkEventKey *event, gpointer) { // TODO: if incremental, call l_find() if (event->keyval == 0xff0d) { @@ -105,6 +108,9 @@ static bool fe_keypress(GtkWidget *, GdkEventKey *event, gpointer) { } else return false; } +/** Replace entry key event. + * Enter - Find next or previous. + */ static bool re_keypress(GtkWidget *, GdkEventKey *event, gpointer) { if (event->keyval == 0xff0d) { l_find(find_text, get_flags(), true); -- cgit v1.2.3