Skip to content

Commit

Permalink
Fixed an issue where the ImGui popup window steals focus when not on top
Browse files Browse the repository at this point in the history
  • Loading branch information
katemonster33 committed Mar 25, 2024
1 parent cf9267f commit 6972b61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/popup.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ void query_popup_impl::draw_controls()
ImGui::SameLine();
}

if( keyboard_selected_option == -1 ) {
if( keyboard_selected_option == -1 && ImGui::IsWindowFocused() ) {
ImGui::SetKeyboardFocusHere( -1 );
keyboard_selected_option = parent->buttons.size() - 1;
}
Expand Down

0 comments on commit 6972b61

Please sign in to comment.