summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinQt/Debugger/CodeWidget.cpp
diff options
context:
space:
mode:
authorNitch2024 <cedrick.collomb@gmail.com>2025-03-29 12:43:15 -0700
committerNitch2024 <cedrick.collomb@gmail.com>2025-03-29 12:43:15 -0700
commit1b87ea83e6064d534c3ba71d036f05ff4ffd5ec6 (patch)
treee898747082b81a00f0d2a6b8e206d5b701a99d0f /Source/Core/DolphinQt/Debugger/CodeWidget.cpp
parent1981f222284448cc8a69d970e1f8569dacec684e (diff)
[Debugger] CTRL+G support in code and memory view
Diffstat (limited to 'Source/Core/DolphinQt/Debugger/CodeWidget.cpp')
-rw-r--r--Source/Core/DolphinQt/Debugger/CodeWidget.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/Core/DolphinQt/Debugger/CodeWidget.cpp b/Source/Core/DolphinQt/Debugger/CodeWidget.cpp
index eedf70a192..526165ee5c 100644
--- a/Source/Core/DolphinQt/Debugger/CodeWidget.cpp
+++ b/Source/Core/DolphinQt/Debugger/CodeWidget.cpp
@@ -212,6 +212,7 @@ void CodeWidget::ConnectWidgets()
connect(m_code_view, &CodeViewWidget::RequestPPCComparison, this,
&CodeWidget::RequestPPCComparison);
connect(m_code_view, &CodeViewWidget::ShowMemory, this, &CodeWidget::ShowMemory);
+ connect(m_code_view, &CodeViewWidget::ActivateSearch, this, &CodeWidget::ActivateSearchAddress);
}
void CodeWidget::OnBranchWatchDialog()
@@ -243,6 +244,12 @@ void CodeWidget::OnPPCSymbolsChanged()
}
}
+void CodeWidget::ActivateSearchAddress()
+{
+ m_search_address->setFocus();
+ m_search_address->selectAll();
+}
+
void CodeWidget::OnSearchAddress()
{
bool good = true;