|
@@ -247,7 +247,7 @@ static int pxe_menu_select ( struct pxe_menu *menu ) {
|
247
|
247
|
if ( ( key == CR ) || ( key == LF ) ) {
|
248
|
248
|
pxe_menu_draw_item ( menu, menu->selection, 1 );
|
249
|
249
|
break;
|
250
|
|
- } else if ( key == CTRL_C ) {
|
|
250
|
+ } else if ( ( key == CTRL_C ) || ( key == ESC ) ) {
|
251
|
251
|
rc = -ECANCELED;
|
252
|
252
|
break;
|
253
|
253
|
} else if ( key == KEY_UP ) {
|
|
@@ -306,7 +306,7 @@ static int pxe_menu_prompt_and_select ( struct pxe_menu *menu ) {
|
306
|
306
|
/* Display menu */
|
307
|
307
|
printf ( "\n" );
|
308
|
308
|
return pxe_menu_select ( menu );
|
309
|
|
- } else if ( key == CTRL_C ) {
|
|
309
|
+ } else if ( ( key == CTRL_C ) || ( key == ESC ) ) {
|
310
|
310
|
/* Abort */
|
311
|
311
|
rc = -ECANCELED;
|
312
|
312
|
break;
|