summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2010-09-05 17:39:45 +0200
committerDaniel Friesel <derf@finalrewind.org>2010-09-05 17:39:45 +0200
commitca1f80782d19d380fcf7c0a1a67714d87e54e06b (patch)
treed20f441e70ea7f832a31f19d33fafaf10da0fd52 /src
parent6e993d93ba1b49c33285b909f99f5d26aba36fb1 (diff)
Make pan keys behave like scroll keys
Diffstat (limited to 'src')
-rw-r--r--src/keyevents.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/keyevents.c b/src/keyevents.c
index 893d543..c2c50ae 100644
--- a/src/keyevents.c
+++ b/src/keyevents.c
@@ -161,7 +161,7 @@ void feh_event_handle_keypress(XEvent * ev)
switch (keysym) {
case XK_Left:
if (kev->state & ControlMask) {
- winwid->im_x -= 10;
+ winwid->im_x += 10;
winwidget_render_image(winwid, 0, 0);
}
else if (opt.slideshow)
@@ -169,7 +169,7 @@ void feh_event_handle_keypress(XEvent * ev)
break;
case XK_Right:
if (kev->state & ControlMask) {
- winwid->im_x += 10;
+ winwid->im_x -= 10;
winwidget_render_image(winwid, 0, 0);
}
else if (opt.slideshow)
@@ -254,25 +254,25 @@ void feh_event_handle_keypress(XEvent * ev)
feh_event_invoke_action(winwid, opt.actions[9]);
break;
case XK_KP_Left:
- winwid->im_x -= 10;
+ winwid->im_x += 10;
winwidget_render_image(winwid, 0, 0);
break;
case XK_KP_Right:
- winwid->im_x += 10;
+ winwid->im_x -= 10;
winwidget_render_image(winwid, 0, 0);
break;
case XK_KP_Up:
- winwid->im_y -= 10;
+ winwid->im_y += 10;
winwidget_render_image(winwid, 0, 0);
break;
case XK_KP_Down:
- winwid->im_y += 10;
+ winwid->im_y -= 10;
winwidget_render_image(winwid, 0, 0);
break;
case XK_KP_Add:
case XK_Up:
if (kev->state & ControlMask) {
- winwid->im_y -= 10;
+ winwid->im_y += 10;
winwidget_render_image(winwid, 0, 0);
}
else {
@@ -291,7 +291,7 @@ void feh_event_handle_keypress(XEvent * ev)
case XK_KP_Subtract:
case XK_Down:
if (kev->state & ControlMask) {
- winwid->im_y += 10;
+ winwid->im_y -= 10;
winwidget_render_image(winwid, 0, 0);
}
else {