diff options
| author | Jordan Woyak <jordan.woyak@gmail.com> | 2025-05-20 21:05:55 -0500 |
|---|---|---|
| committer | Jordan Woyak <jordan.woyak@gmail.com> | 2025-05-20 21:06:32 -0500 |
| commit | f1b7f8a72e9e59c021dc63e1809c7ff43847b884 (patch) | |
| tree | 98cb8803a628eef8df9b86fea1b5127ba9a6397b /Source | |
| parent | 1dc4dc6b6d660f29226bdff29d0b1bae122dda7e (diff) | |
DolphinQt/RenderWidget: Grab focus on mouse button press.
Diffstat (limited to 'Source')
| -rw-r--r-- | Source/Core/DolphinQt/RenderWidget.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/Core/DolphinQt/RenderWidget.cpp b/Source/Core/DolphinQt/RenderWidget.cpp index 4ca6ece1a9..f286b765e1 100644 --- a/Source/Core/DolphinQt/RenderWidget.cpp +++ b/Source/Core/DolphinQt/RenderWidget.cpp @@ -384,6 +384,10 @@ bool RenderWidget::event(QEvent* event) SetCursorLocked(false); break; case QEvent::MouseButtonPress: + + // Grab focus to stop unwanted keyboard input UI interaction. + setFocus(); + if (isActiveWindow()) { // Lock the cursor with any mouse button click (behave the same as window focus change). |
