diff options
author | nick_m <mainsbridge@gmail.com> | 2016-08-14 01:50:51 +1000 |
---|---|---|
committer | nick_m <mainsbridge@gmail.com> | 2016-08-14 03:04:54 +1000 |
commit | 4eba9b86381b7a56d0b1c20cde2064fd16c45a04 (patch) | |
tree | 9bbfa114d5f1d5b46a664436db39d0ccb64c9551 /gtk2_ardour/keyboard.h | |
parent | c62026b5679810d4633c1a2de841daf29dda9dc6 (diff) |
Resolve potential ambiguity between the constraint modifier and the copy modifier when beginning a drag.
Diffstat (limited to 'gtk2_ardour/keyboard.h')
-rw-r--r-- | gtk2_ardour/keyboard.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gtk2_ardour/keyboard.h b/gtk2_ardour/keyboard.h index e008a40128..f7b52d3ae1 100644 --- a/gtk2_ardour/keyboard.h +++ b/gtk2_ardour/keyboard.h @@ -56,6 +56,16 @@ class ArdourKeyboard : public Gtkmm2ext::Keyboard */ static bool indicates_snap_delta (guint state); + /** @param state The button state from a GdkEvent. + * @return true if the modifier state indicates copy modifier + */ + static bool indicates_copy (guint state); + + /** @param state The button state from a GdkEvent. + * @return true if the modifier state indicates constraint modifier + */ + static bool indicates_constraint (guint state); + static void set_constraint_modifier (guint); /** @return Modifier mask to constrain drags in a particular direction; */ |