From 2a3a9657d360a4952ef84aa4e8665f211d490321 Mon Sep 17 00:00:00 2001 From: Bert Date: Wed, 17 Aug 2011 01:11:47 +0200 Subject: [PATCH] Fixed keyboard mappings --- config.h | 12 ++++++++---- sxiv.1 | 8 ++++---- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/config.h b/config.h index e5df7aa..dd9efe8 100644 --- a/config.h +++ b/config.h @@ -64,10 +64,14 @@ static const keymap_t keys[] = { { False, XK_l, move, (arg_t) DIR_RIGHT }, { False, XK_Right, move, (arg_t) DIR_RIGHT }, - { False, XK_braceleft, pan_screen, (arg_t) DIR_LEFT }, - { False, XK_Next, pan_screen, (arg_t) DIR_DOWN }, - { False, XK_Prior, pan_screen, (arg_t) DIR_UP }, - { False, XK_braceright, pan_screen, (arg_t) DIR_RIGHT }, + { True, XK_h, pan_screen, (arg_t) DIR_LEFT }, + { True, XK_Left, pan_screen, (arg_t) DIR_LEFT }, + { True, XK_j, pan_screen, (arg_t) DIR_DOWN }, + { True, XK_Down, pan_screen, (arg_t) DIR_DOWN }, + { True, XK_k, pan_screen, (arg_t) DIR_UP }, + { True, XK_Up, pan_screen, (arg_t) DIR_UP }, + { True, XK_l, pan_screen, (arg_t) DIR_RIGHT }, + { True, XK_Right, pan_screen, (arg_t) DIR_RIGHT }, { False, XK_H, pan_edge, (arg_t) DIR_LEFT }, { False, XK_J, pan_edge, (arg_t) DIR_DOWN }, diff --git a/sxiv.1 b/sxiv.1 index c27dfe7..d6f7069 100644 --- a/sxiv.1 +++ b/sxiv.1 @@ -150,16 +150,16 @@ Pan to top image edge. .B L Pan to right image edge. .TP -.BR { +.BR Ctrl-h ", " Ctrl-Left Pan image one window width left. .TP -.BR PageDn +.BR Ctrl-j ", " Ctrl-Down Pan image one window height down. .TP -.BR PageUp +.BR Ctrl-k ", " Ctrl-Up Pan image one window height up. .TP -.BR } +.BR Ctrl-l ", " Ctrl-Right Pan image one window width right. .SS Rotation .TP