summaryrefslogtreecommitdiff
path: root/libs/gtkmm2ext/gtkmm2ext/keyboard.h
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2011-08-17 12:46:42 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2011-08-17 12:46:42 +0000
commit45d51d3aeee2fbc0dc446452b369d90ff54be382 (patch)
treeafb1bdf5db7c5919ffec2166d7407a83cce36c4c /libs/gtkmm2ext/gtkmm2ext/keyboard.h
parent4aa84f0513c6cd47561e5bb1d5ec436426fee581 (diff)
various fixes to MidiRegionView selection handling, key handling, drawing of ghost notes (contains a fix for #4263); shift-drag selections in MidiRegionViews now correctly add to the selection rather than replacing any existing one.3.0-alpha10
git-svn-id: svn://localhost/ardour2/branches/3.0@10000 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/gtkmm2ext/gtkmm2ext/keyboard.h')
-rw-r--r--libs/gtkmm2ext/gtkmm2ext/keyboard.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/libs/gtkmm2ext/gtkmm2ext/keyboard.h b/libs/gtkmm2ext/gtkmm2ext/keyboard.h
index db5f9ef3de..db8100c081 100644
--- a/libs/gtkmm2ext/gtkmm2ext/keyboard.h
+++ b/libs/gtkmm2ext/gtkmm2ext/keyboard.h
@@ -91,6 +91,10 @@ class Keyboard : public sigc::trackable, PBD::Stateful
return (ev->state & RelevantModifierKeyMask) == 0;
}
+ static bool no_modifier_keys_pressed(GdkEventKey* ev) {
+ return (ev->state & RelevantModifierKeyMask) == 0;
+ }
+
bool leave_window (GdkEventCrossing *ev, Gtk::Window*);
bool enter_window (GdkEventCrossing *ev, Gtk::Window*);