summaryrefslogtreecommitdiffhomepage
path: root/opentrack/global-shortcuts.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'opentrack/global-shortcuts.cpp')
-rw-r--r--opentrack/global-shortcuts.cpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/opentrack/global-shortcuts.cpp b/opentrack/global-shortcuts.cpp
index 0fb5a2a5..f719e766 100644
--- a/opentrack/global-shortcuts.cpp
+++ b/opentrack/global-shortcuts.cpp
@@ -1,9 +1,3 @@
-#include <QList>
-#include <QKeySequence>
-#include <QVariant>
-#include <QDebug>
-#include "global-shortcuts.h"
-
#if defined(_WIN32)
# ifndef DIRECTINPUT_VERSION
# define DIRECTINPUT_VERSION 0x800
@@ -11,6 +5,12 @@
# include <windows.h>
# include <dinput.h>
+#include <QList>
+#include <QKeySequence>
+#include <QVariant>
+#include <QDebug>
+#include "global-shortcuts.h"
+
QList<win_key> windows_key_mods =
QList<win_key>({
win_key(DIK_LCONTROL, Qt::Key::Key_Control),
@@ -108,6 +108,7 @@ QList<win_key> windows_key_sequences =
win_key(DIK_Y, Qt::Key::Key_Y ),
win_key(DIK_Z, Qt::Key::Key_Z ),
win_key(DIK_RETURN, Qt::Key::Key_Return),
+ win_key(DIK_INSERT, Qt::Key::Key_Insert),
});
bool win_key::from_qt(QKeySequence qt_, int& dik, Qt::KeyboardModifiers& mods)