Project

General

Profile

0001-fix-shortcuts-with-shift-modifier.patch

Rikard Öxler, 11/18/2017 04:11 PM

Download (1.85 KB)

View differences:

src/gui/gtk.c
809 809

  
810 810
static gboolean key_pressed(GtkWidget *w, GdkEventKey *event, gpointer user_data)
811 811
{
812
  return dt_control_key_pressed(event->keyval, event->state & KEY_STATE_MASK);
812
  return dt_control_key_pressed(gdk_keyval_to_lower(event->keyval), event->state & KEY_STATE_MASK);
813 813
}
814 814

  
815 815
static gboolean key_released(GtkWidget *w, GdkEventKey *event, gpointer user_data)
816 816
{
817
  return dt_control_key_released(event->keyval, event->state & KEY_STATE_MASK);
817
  return dt_control_key_released(gdk_keyval_to_lower(event->keyval), event->state & KEY_STATE_MASK);
818 818
}
819 819

  
820 820
static gboolean button_pressed(GtkWidget *w, GdkEventButton *event, gpointer user_data)
src/gui/preferences.c
931 931
  if(darktable.control->accel_remap_str)
932 932
  {
933 933
    // Change the accel map entry
934
    if(gtk_accel_map_change_entry(darktable.control->accel_remap_str, event->keyval,
934
    if(gtk_accel_map_change_entry(darktable.control->accel_remap_str, gdk_keyval_to_lower(event->keyval),
935 935
                                  event->state & KEY_STATE_MASK, TRUE))
936 936
    {
937 937
      // If it succeeded delete any conflicting accelerators
938
-