From bd9f4ebf0771b5a3db5e900b31e4676e41877bc4 Mon Sep 17 00:00:00 2001 From: QC Date: Thu, 11 Jun 2015 21:20:09 +0200 Subject: [PATCH] More dmenu fixes (shift -enter on custom) --- source/dialogs/dmenu.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/source/dialogs/dmenu.c b/source/dialogs/dmenu.c index 38afd942..25f3d78a 100644 --- a/source/dialogs/dmenu.c +++ b/source/dialogs/dmenu.c @@ -275,6 +275,12 @@ int dmenu_switcher_dialog ( char **input ) // Custom input else if ( ( mretv & ( MENU_CUSTOM_INPUT ) ) ) { dmenu_output_formatted_line ( format, *input, -1, *input ); + if ( ( mretv & MENU_SHIFT ) ) { + restart = TRUE; + // Move to next line. + selected_line = MIN ( next_pos, length - 1 ); + } + retv = TRUE; } // Quick switch with entry selected.