aboutsummaryrefslogtreecommitdiff
path: root/fastiv-view.c
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2021-11-17 08:38:11 +0100
committerPřemysl Eric Janouch <p@janouch.name>2021-11-17 08:38:45 +0100
commite8754f43a602f76fdbd35cdd24f9cfeeb4cdcf2b (patch)
tree672b38c59d011fe5b40b5fbc4ceedf98ee005262 /fastiv-view.c
parent6eec8e7360aaa7db9aec9d9247d38060633041fd (diff)
downloadfiv-e8754f43a602f76fdbd35cdd24f9cfeeb4cdcf2b.tar.gz
fiv-e8754f43a602f76fdbd35cdd24f9cfeeb4cdcf2b.tar.xz
fiv-e8754f43a602f76fdbd35cdd24f9cfeeb4cdcf2b.zip
Fix zooming in through the keyboard
Diffstat (limited to 'fastiv-view.c')
-rw-r--r--fastiv-view.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fastiv-view.c b/fastiv-view.c
index 9ed93f8..83ecabb 100644
--- a/fastiv-view.c
+++ b/fastiv-view.c
@@ -316,14 +316,13 @@ static gboolean
fastiv_view_key_press_event(GtkWidget *widget, GdkEventKey *event)
{
FastivView *self = FASTIV_VIEW(widget);
- if (event->state & gtk_accelerator_get_default_mod_mask())
+ if (event->state & ~GDK_SHIFT_MASK & gtk_accelerator_get_default_mod_mask())
return FALSE;
switch (event->keyval) {
case GDK_KEY_1:
return set_scale(self, 1.0);
case GDK_KEY_plus:
- self->scale *= SCALE_STEP;
return set_scale(self, self->scale * SCALE_STEP);
case GDK_KEY_minus:
return set_scale(self, self->scale / SCALE_STEP);