diff options
-rw-r--r-- | data/evince-ui.xml | 2 | ||||
-rw-r--r-- | shell/ev-window.c | 4 |
2 files changed, 6 insertions, 0 deletions
diff --git a/data/evince-ui.xml b/data/evince-ui.xml index 7ac4edb..bd5e947 100644 --- a/data/evince-ui.xml +++ b/data/evince-ui.xml @@ -101,6 +101,8 @@ <accelerator name="BackSpaceAccel" action="BackSpace"/> <accelerator name="ShiftSpaceAccel" action="ShiftSpace"/> <accelerator name="ShiftBackSpaceAccel" action="ShiftBackSpace"/> + <accelerator name="pAccel" action="p"/> + <accelerator name="nAccel" action="n"/> <accelerator name="ShiftReturnAccel" action="ShiftReturn"/> <accelerator name="FocusPageSelectorAccel" action="FocusPageSelector"/> <accelerator name="PlusAccel" action="Plus"/> diff --git a/shell/ev-window.c b/shell/ev-window.c index dec5ddb..02a3087 100644 --- a/shell/ev-window.c +++ b/shell/ev-window.c @@ -5104,6 +5104,10 @@ static const GtkActionEntry entries[] = { G_CALLBACK (ev_window_cmd_scroll_forward) }, { "ShiftReturn", NULL, "", "<shift>Return", NULL, G_CALLBACK (ev_window_cmd_scroll_backward) }, + { "p", GTK_STOCK_GO_UP, "", "p", NULL, + G_CALLBACK (ev_window_cmd_go_previous_page) }, + { "n", GTK_STOCK_GO_DOWN, "", "n", NULL, + G_CALLBACK (ev_window_cmd_go_next_page) }, { "Plus", GTK_STOCK_ZOOM_IN, NULL, "plus", NULL, G_CALLBACK (ev_window_cmd_view_zoom_in) }, { "CtrlEqual", GTK_STOCK_ZOOM_IN, NULL, "<control>equal", NULL, |