13
0

edited keybindings should be stored in lower-case form

This commit is contained in:
Paul Davis 2016-03-05 11:53:42 -05:00
parent b4ead1dda6
commit 6aa7ca6d70

View File

@ -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;
}