aboutsummaryrefslogtreecommitdiff
path: root/src/find_replace.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/find_replace.c')
-rw-r--r--src/find_replace.c6
1 files changed, 6 insertions, 0 deletions
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);