From b3dbc9ca9a5ae702da8397a29cc5ce620f21e141 Mon Sep 17 00:00:00 2001 From: wdlkmpx Date: Tue, 29 Dec 2020 17:29:10 +0800 Subject: [PATCH] CTRL-n: Fetch the next command from the history list --- src/gtkcompletionline.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/gtkcompletionline.c b/src/gtkcompletionline.c index a5aa174..4636594 100644 --- a/src/gtkcompletionline.c +++ b/src/gtkcompletionline.c @@ -984,6 +984,13 @@ on_key_press(GtkCompletionLine *cl, GdkEventKey *event, gpointer data) return FALSE; case GDK_KEY_Down: + case GDK_KEY_N: + case GDK_KEY_n: + if (key == GDK_KEY_n || key == GDK_KEY_N) { + if (!(event->state & GDK_CONTROL_MASK)) { + goto ordinary; + } + } if (cl->win_compl != NULL) { gboolean valid = gtk_tree_model_iter_next(cl->sort_list_compl, &(cl->list_compl_it)); if(!valid) {