Skip to content

Commit

Permalink
gui: Utilize setter for 'ALTKEY' in x_event_scroll()
Browse files Browse the repository at this point in the history
  • Loading branch information
vzh committed May 22, 2024
1 parent 3fc548f commit ffbf567
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libleptongui/src/x_event.c
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ gint x_event_scroll (GtkWidget *widget, GdkEventScroll *event,
/* update the state of the modifiers */
schematic_window_set_shift_key_pressed (w_current, (event->state & GDK_SHIFT_MASK) ? 1 : 0);
schematic_window_set_control_key_pressed (w_current, (event->state & GDK_CONTROL_MASK) ? 1 : 0);
w_current->ALTKEY = (event->state & GDK_MOD1_MASK) ? 1 : 0;
schematic_window_set_alt_key_pressed (w_current, (event->state & GDK_MOD1_MASK) ? 1 : 0);

if (w_current->scroll_wheel == SCROLL_WHEEL_CLASSIC) {
/* Classic gschem behaviour */
Expand Down

0 comments on commit ffbf567

Please sign in to comment.