mirror of
https://github.com/holub/mame
synced 2025-10-04 16:34:53 +03:00
debugimgui: if console window is active, then give console input widget focus. Note that this means that the disassmbly view in the console cannot get focus at all (but separate disasm windows still can).
This commit is contained in:
parent
7fbe24ba16
commit
7a23493dcc
@ -954,6 +954,8 @@ void debug_imgui::draw_console()
|
||||
ImGui::PushItemWidth(-1.0f);
|
||||
if(ImGui::InputText("##console_input",view_main_console->console_input,512,flags))
|
||||
view_main_console->exec_cmd = true;
|
||||
if ((ImGui::IsRootWindowOrAnyChildFocused() && !ImGui::IsAnyItemActive() && !ImGui::IsMouseClicked(0)))
|
||||
ImGui::SetKeyboardFocusHere(-1); // Auto focus previous widget
|
||||
ImGui::PopItemWidth();
|
||||
ImGui::EndChild();
|
||||
ImGui::End();
|
||||
|
Loading…
Reference in New Issue
Block a user