summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2012-03-12 12:44:56 +0100
committerDaniel Friesel <derf@finalrewind.org>2012-03-12 12:44:56 +0100
commitcbab594f051b5c21a76d0ad389a25d6449e0b839 (patch)
tree606460dc388ccf56e57e67b5f1afd91ced3892d8
parent3b2756bf2517f41b319adf9b3155efd1486a801b (diff)
downloadfeh-cbab594f051b5c21a76d0ad389a25d6449e0b839.zip
Add alternative defaults for numpad keybindings (closes #84)
-rw-r--r--man/feh.pre6
-rw-r--r--src/keyevents.c6
2 files changed, 6 insertions, 6 deletions
diff --git a/man/feh.pre b/man/feh.pre
index a402c8c..48d7778 100644
--- a/man/feh.pre
+++ b/man/feh.pre
@@ -1151,7 +1151,7 @@ Scroll up by one page
.
Scroll down by one page
.
-.It Ao keypad begin Ac Bq render
+.It R, Ao keypad begin Ac Bq render
.
Antialias the image
.
@@ -1163,11 +1163,11 @@ Zoom in
.
Zoom out
.
-.It Ao keypad * Ac Bq zoom_default
+.It *, Ao keypad * Ac Bq zoom_default
.
Zoom to 100%
.
-.It Ao keypad / Ac Bq zoom_fit
+.It /, Ao keypad / Ac Bq zoom_fit
.
Zoom to fit the window size
.
diff --git a/src/keyevents.c b/src/keyevents.c
index 0ada751..6327320 100644
--- a/src/keyevents.c
+++ b/src/keyevents.c
@@ -129,10 +129,10 @@ void init_keyevents(void) {
feh_set_kb(&keys.action_9 , 0, XK_9 , 0, XK_KP_9 , 0, 0);
feh_set_kb(&keys.zoom_in , 0, XK_Up , 0, XK_KP_Add , 0, 0);
feh_set_kb(&keys.zoom_out , 0, XK_Down , 0, XK_KP_Subtract,0, 0);
- feh_set_kb(&keys.zoom_default, 0, XK_KP_Multiply, 0, 0 , 0, 0);
- feh_set_kb(&keys.zoom_fit , 0, XK_KP_Divide , 0, 0 , 0, 0);
+ feh_set_kb(&keys.zoom_default, 0, XK_KP_Multiply, 0, XK_asterisk, 0, 0);
+ feh_set_kb(&keys.zoom_fit , 0, XK_KP_Divide , 0, XK_slash , 0, 0);
feh_set_kb(&keys.size_to_image, 0, XK_w , 0, 0 , 0, 0);
- feh_set_kb(&keys.render , 0, XK_KP_Begin , 0, 0 , 0, 0);
+ feh_set_kb(&keys.render , 0, XK_KP_Begin , 0, XK_R , 0, 0);
feh_set_kb(&keys.toggle_actions, 0, XK_a, 0, 0, 0, 0);
feh_set_kb(&keys.toggle_aliasing, 0, XK_A, 0, 0, 0, 0);
feh_set_kb(&keys.toggle_filenames, 0, XK_d, 0, 0, 0, 0);