diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2015-07-25 06:55:12 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2015-07-25 06:57:30 +0200 |
commit | 61b6c69b3f36ebea142a55d0eb37601d99bcd522 (patch) | |
tree | 31010807b502132aa35c0af07e78e0a4c533bbb4 /opentrack/global-shortcuts.cpp | |
parent | e646166be460dce1553360463992d3df018d1906 (diff) |
shortcuts: add missing keybindings
Diffstat (limited to 'opentrack/global-shortcuts.cpp')
-rw-r--r-- | opentrack/global-shortcuts.cpp | 13 |
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) |