summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2015-10-27 13:30:47 -0400
committerPaul Davis <paul@linuxaudiosystems.com>2016-02-22 15:31:25 -0500
commit329c096066691f9ebbbf89a90d4f547b08d740cf (patch)
tree5cc57a6e82f02b19881019e0684d7d8d2baec368
parenteedeb4949d16e5415ba790a042c5db6d83580b36 (diff)
add a clarifying comment
-rw-r--r--libs/gtkmm2ext/bindings.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/libs/gtkmm2ext/bindings.cc b/libs/gtkmm2ext/bindings.cc
index 490e7526de..0c4e7248bf 100644
--- a/libs/gtkmm2ext/bindings.cc
+++ b/libs/gtkmm2ext/bindings.cc
@@ -50,6 +50,11 @@ MouseButton::MouseButton (uint32_t state, uint32_t keycode)
{
uint32_t ignore = ~Keyboard::RelevantModifierKeyMask;
+ /* this is a slightly wierd test that relies on
+ * gdk_keyval_is_{upper,lower}() returning true for keys that have no
+ * case-sensitivity. This covers mostly non-alphanumeric keys.
+ */
+
if (gdk_keyval_is_upper (keycode) && gdk_keyval_is_lower (keycode)) {
/* key is not subject to case, so ignore SHIFT
*/
@@ -1082,4 +1087,3 @@ std::ostream& operator<<(std::ostream& out, Gtkmm2ext::KeyboardKey const & k) {
char const *gdk_name = gdk_keyval_name (k.key());
return out << "Key " << k.key() << " (" << (gdk_name ? gdk_name : "no-key") << ") state " << hex << k.state() << dec;
}
-