diff --git a/UI/ImDebugger/ImDebugger.cpp b/UI/ImDebugger/ImDebugger.cpp index 03d42cc467..1bbda24935 100644 --- a/UI/ImDebugger/ImDebugger.cpp +++ b/UI/ImDebugger/ImDebugger.cpp @@ -141,11 +141,21 @@ void ImDisasmWindow::Draw(MIPSDebugInterface *mipsDebug, bool *open, CoreState c disasmView_.setDebugger(mipsDebug); ImGui::SetNextWindowSize(ImVec2(520, 600), ImGuiCond_FirstUseEver); - if (!ImGui::Begin(title, open)) { + if (!ImGui::Begin(title, open, ImGuiWindowFlags_NoNavInputs)) { ImGui::End(); return; } + if (ImGui::IsWindowFocused()) { + // Process stepping keyboard shortcuts. + if (ImGui::IsKeyPressed(ImGuiKey_F10)) { + Core_RequestSingleStep(CPUStepType::Over, 0); + } + if (ImGui::IsKeyPressed(ImGuiKey_F11)) { + Core_RequestSingleStep(CPUStepType::Into, 0); + } + } + ImGui::BeginDisabled(coreState != CORE_STEPPING); if (ImGui::SmallButton("Run")) { Core_Resume();