X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;ds=sidebyside;f=scripts%2Flxdialog%2Fmenubox.c;h=124459c043b54e9ba737b581a0794ad9be9101a0;hb=c7b5ebbddf7bcd3651947760f423e3783bbe6573;hp=9544b3c1fb06191a92b183db403819bf77e47465;hpb=a2c21200f1c81b08cb55e417b68150bba439b646;p=linux-2.6.git diff --git a/scripts/lxdialog/menubox.c b/scripts/lxdialog/menubox.c index 9544b3c1f..124459c04 100644 --- a/scripts/lxdialog/menubox.c +++ b/scripts/lxdialog/menubox.c @@ -276,6 +276,15 @@ dialog_menu (const char *title, const char *prompt, int height, int width, while (key != ESC) { key = wgetch(menu); + if ( key == '/' ) { + int ret = dialog_inputbox("Search Configuration Parameter", + "Enter Keyword", height, width, + (char *) NULL); + if (ret == 0) { + fprintf(stderr, "%s", dialog_input_result); + return 26; + } + } if (key < 256 && isalpha(key)) key = tolower(key);