summaryrefslogtreecommitdiff
path: root/gtk2_ardour/keyboard.h
diff options
context:
space:
mode:
Diffstat (limited to 'gtk2_ardour/keyboard.h')
-rw-r--r--gtk2_ardour/keyboard.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/gtk2_ardour/keyboard.h b/gtk2_ardour/keyboard.h
index 2905299334..cff45b11f2 100644
--- a/gtk2_ardour/keyboard.h
+++ b/gtk2_ardour/keyboard.h
@@ -90,6 +90,11 @@ class Keyboard : public sigc::trackable, PBD::Stateful
static bool no_modifiers_active (guint state);
static void set_snap_modifier (guint);
+
+ /** @return Modifier mask to temporarily toggle grid setting; with this modifier
+ * - magnetic or normal grid should become no grid and
+ * - no grid should become normal grid
+ */
static ModifierMask snap_modifier () { return ModifierMask (snap_mod); }
static guint edit_button() { return edit_but; }