diff --git a/src/popup.cpp b/src/popup.cpp index b1fde77ee4ee6..dde66edbe261f 100644 --- a/src/popup.cpp +++ b/src/popup.cpp @@ -376,7 +376,7 @@ query_popup::result query_popup::query_once() } else { for( size_t ind = 0; ind < options.size(); ++ind ) { if( res.action == options[ind].action ) { - cur = ind; + impl->keyboard_selected_option = ind; if( options[ind].filter( res.evt ) ) { res.wait_input = false; break;