From 6aa7ca6d70a7c0d73dc6dd5da783834d57166224 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Sat, 5 Mar 2016 11:53:42 -0500 Subject: [PATCH] edited keybindings should be stored in lower-case form --- gtk2_ardour/keyeditor.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gtk2_ardour/keyeditor.cc b/gtk2_ardour/keyeditor.cc index 37d923a18f..28005a0401 100644 --- a/gtk2_ardour/keyeditor.cc +++ b/gtk2_ardour/keyeditor.cc @@ -238,6 +238,12 @@ KeyEditor::Tab::bind (GdkEventKey* release_event, guint pressed_key) { TreeModel::iterator i = view.get_selection()->get_selected(); + /* pressed key could be upper case if Shift was used. We want all + single keys stored as their lower-case version, so ensure this + */ + + pressed_key = gdk_keyval_to_lower (pressed_key); + if (i == model->children().end()) { return; }