summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfearlessTobi <thm.frey@gmail.com>2019-03-06 19:31:23 +0100
committerfearlessTobi <thm.frey@gmail.com>2019-03-06 19:31:23 +0100
commitc8d6f0cb82abca958889f2f648c1ee8ac998f726 (patch)
tree1708f501f0fba7949d7af0d4ea3a3c3d6979168a
parentMerge pull request #2194 from lioncash/mem (diff)
downloadyuzu-c8d6f0cb82abca958889f2f648c1ee8ac998f726.tar
yuzu-c8d6f0cb82abca958889f2f648c1ee8ac998f726.tar.gz
yuzu-c8d6f0cb82abca958889f2f648c1ee8ac998f726.tar.bz2
yuzu-c8d6f0cb82abca958889f2f648c1ee8ac998f726.tar.lz
yuzu-c8d6f0cb82abca958889f2f648c1ee8ac998f726.tar.xz
yuzu-c8d6f0cb82abca958889f2f648c1ee8ac998f726.tar.zst
yuzu-c8d6f0cb82abca958889f2f648c1ee8ac998f726.zip
-rw-r--r--src/yuzu/main.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/yuzu/main.cpp b/src/yuzu/main.cpp
index 5ab7896d4..7a833798d 100644
--- a/src/yuzu/main.cpp
+++ b/src/yuzu/main.cpp
@@ -11,6 +11,7 @@
#include "applets/profile_select.h"
#include "applets/software_keyboard.h"
#include "applets/web_browser.h"
+#include "configuration/configure_input.h"
#include "configuration/configure_per_general.h"
#include "core/file_sys/vfs.h"
#include "core/file_sys/vfs_real.h"
@@ -522,6 +523,7 @@ void GMainWindow::InitializeHotkeys() {
Qt::ApplicationShortcut);
hotkey_registry.RegisterHotkey("Main Window", "Capture Screenshot",
QKeySequence(QKeySequence::Print));
+ hotkey_registry.RegisterHotkey("Main Window", "Change Docked Mode", QKeySequence(Qt::Key_F10));
hotkey_registry.LoadHotkeys();
@@ -591,6 +593,12 @@ void GMainWindow::InitializeHotkeys() {
OnCaptureScreenshot();
}
});
+ connect(hotkey_registry.GetHotkey("Main Window", "Change Docked Mode", this),
+ &QShortcut::activated, this, [&] {
+ Settings::values.use_docked_mode = !Settings::values.use_docked_mode;
+ OnDockedModeChanged(!Settings::values.use_docked_mode,
+ Settings::values.use_docked_mode);
+ });
}
void GMainWindow::SetDefaultUIGeometry() {