diff options
| author | 2014-12-26 02:37:52 +0100 | |
|---|---|---|
| committer | 2014-12-26 02:37:52 +0100 | |
| commit | 9d90b26020af83d11ec0900117495901d445e907 (patch) | |
| tree | b45ed2ee33471deaf6d46fa9dee7aee785f1f83e /src/citra_qt/main.cpp | |
| parent | Merge pull request #328 from archshift/writeable (diff) | |
| download | yuzu-9d90b26020af83d11ec0900117495901d445e907.tar.gz yuzu-9d90b26020af83d11ec0900117495901d445e907.tar.xz yuzu-9d90b26020af83d11ec0900117495901d445e907.zip | |
Allow focus on the Qt render widget
By default widgets are set to the focus policy Qt::NoFocus which disallows manually focusing it. Changing the policy to allow clicking the widget to set focus to it allows for keyboard input when not rendering to a popout window. This commit also sets focus to the widget when showing it.
Fixes issue #158.
Diffstat (limited to 'src/citra_qt/main.cpp')
| -rw-r--r-- | src/citra_qt/main.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/citra_qt/main.cpp b/src/citra_qt/main.cpp index 23d4925b8..9fc8705e6 100644 --- a/src/citra_qt/main.cpp +++ b/src/citra_qt/main.cpp | |||
| @@ -170,6 +170,7 @@ void GMainWindow::BootGame(std::string filename) | |||
| 170 | render_window->GetEmuThread().start(); | 170 | render_window->GetEmuThread().start(); |
| 171 | 171 | ||
| 172 | render_window->show(); | 172 | render_window->show(); |
| 173 | render_window->setFocus(); | ||
| 173 | OnStartGame(); | 174 | OnStartGame(); |
| 174 | } | 175 | } |
| 175 | 176 | ||