diff --git a/Source/Core/DolphinQt/Debugger/CodeViewWidget.cpp b/Source/Core/DolphinQt/Debugger/CodeViewWidget.cpp index c7a74ee29d..82d1473ee4 100644 --- a/Source/Core/DolphinQt/Debugger/CodeViewWidget.cpp +++ b/Source/Core/DolphinQt/Debugger/CodeViewWidget.cpp @@ -1174,7 +1174,9 @@ void CodeViewWidget::keyPressEvent(QKeyEvent* event) if (event->modifiers() == Qt::ControlModifier) { emit ActivateSearch(); + return; } + [[fallthrough]]; default: QWidget::keyPressEvent(event); break; diff --git a/Source/Core/DolphinQt/Debugger/MemoryViewWidget.cpp b/Source/Core/DolphinQt/Debugger/MemoryViewWidget.cpp index 67505f3ce4..09740fa6b5 100644 --- a/Source/Core/DolphinQt/Debugger/MemoryViewWidget.cpp +++ b/Source/Core/DolphinQt/Debugger/MemoryViewWidget.cpp @@ -126,7 +126,9 @@ public: if (event->modifiers() == Qt::ControlModifier) { m_view->TriggerActivateSearch(); + return; } + [[fallthrough]]; default: QWidget::keyPressEvent(event); return;