diff options
| author | Marc Jeanmougin <marc@jeanmougin.fr> | 2017-06-29 15:38:42 +0000 |
|---|---|---|
| committer | Marc Jeanmougin <marc@jeanmougin.fr> | 2017-06-29 15:38:42 +0000 |
| commit | d79cc2caf65007ac9d1d59886785ded5d5ac44a8 (patch) | |
| tree | 73fbde2c287ef2ad56a54223f24d78de84687180 /src/helper/window.cpp | |
| parent | Add caching to io resources path construction (diff) | |
| download | inkscape-d79cc2caf65007ac9d1d59886785ded5d5ac44a8.tar.gz inkscape-d79cc2caf65007ac9d1d59886785ded5d5ac44a8.zip | |
Allows one to use Super, Hyper and Meta key modifiers in shortcuts
Diffstat (limited to 'src/helper/window.cpp')
| -rw-r--r-- | src/helper/window.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/helper/window.cpp b/src/helper/window.cpp index 98e886a38..270f9a3c8 100644 --- a/src/helper/window.cpp +++ b/src/helper/window.cpp @@ -23,6 +23,12 @@ static bool on_window_key_press(GdkEventKey* event) shortcut = Inkscape::UI::Tools::get_group0_keyval (event) | ( event->state & GDK_SHIFT_MASK ? SP_SHORTCUT_SHIFT_MASK : 0 ) | + ( event->state & GDK_SUPER_MASK ? + SP_SHORTCUT_SUPER_MASK : 0 ) | + ( event->state & GDK_HYPER_MASK ? + SP_SHORTCUT_HYPER_MASK : 0 ) | + ( event->state & GDK_META_MASK ? + SP_SHORTCUT_META_MASK : 0 ) | ( event->state & GDK_CONTROL_MASK ? SP_SHORTCUT_CONTROL_MASK : 0 ) | ( event->state & GDK_MOD1_MASK ? |
