mirror of https://github.com/GNOME/gimp.git
app: use toggle_behavior_mask not CONTROL to trigger zoom-on-scroll
This commit is contained in:
parent
1bff8224ad
commit
a38faefba7
|
@ -717,7 +717,7 @@ gimp_display_shell_canvas_tool_events (GtkWidget *canvas,
|
|||
{
|
||||
GdkScrollDirection direction = sevent->direction;
|
||||
|
||||
if (state & GDK_CONTROL_MASK)
|
||||
if (state & gimp_get_toggle_behavior_mask ())
|
||||
{
|
||||
switch (direction)
|
||||
{
|
||||
|
|
|
@ -858,7 +858,7 @@ view_events (GtkWidget *widget,
|
|||
{
|
||||
GdkEventScroll *sevent = (GdkEventScroll *) event;
|
||||
|
||||
if (sevent->state & GDK_CONTROL_MASK)
|
||||
if (sevent->state & gimp_get_toggle_behavior_mask ())
|
||||
{
|
||||
switch (sevent->direction)
|
||||
{
|
||||
|
@ -1063,7 +1063,7 @@ control_events (GtkWidget *widget,
|
|||
{
|
||||
GdkEventScroll *sevent = (GdkEventScroll *) event;
|
||||
|
||||
if (sevent->state & GDK_SHIFT_MASK)
|
||||
if (sevent->state & gimp_get_toggle_behavior_mask ())
|
||||
{
|
||||
if (sevent->direction == GDK_SCROLL_UP)
|
||||
gimp_gradient_editor_zoom (editor, GIMP_ZOOM_IN);
|
||||
|
|
|
@ -36,6 +36,7 @@
|
|||
|
||||
#include "gimpnavigationview.h"
|
||||
#include "gimpviewrenderer.h"
|
||||
#include "gimpwidgets-utils.h"
|
||||
|
||||
|
||||
#define BORDER_WIDTH 2
|
||||
|
@ -302,7 +303,7 @@ static gboolean
|
|||
gimp_navigation_view_scroll (GtkWidget *widget,
|
||||
GdkEventScroll *sevent)
|
||||
{
|
||||
if (sevent->state & GDK_CONTROL_MASK)
|
||||
if (sevent->state & gimp_get_toggle_behavior_mask ())
|
||||
{
|
||||
switch (sevent->direction)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue