Skip to content
Permalink
Browse files

shell: add keypad accels for zoom_reset

  • Loading branch information...
raveit65 committed Mar 10, 2018
1 parent 7619dc6 commit 1c2e9ea54f1641e972d5135420aa81c0d7bba84c
Showing with 6 additions and 0 deletions.
  1. +1 −0 data/atril-previewer-ui.xml
  2. +1 −0 data/atril-ui.xml
  3. +2 −0 previewer/ev-previewer-window.c
  4. +2 −0 shell/ev-window.c
@@ -26,4 +26,5 @@
<accelerator name="KpMinusAccel" action="KpMinus"/>
<accelerator name="CtrlKpPlusAccel" action="CtrlKpPlus"/>
<accelerator name="CtrlKpMinusAccel" action="CtrlKpMinus"/>
<accelerator name="CtrlKpZeroAccel" action="CtrlKpZero"/>
</ui>
@@ -129,6 +129,7 @@
<accelerator name="KpMinusAccel" action="KpMinus"/>
<accelerator name="CtrlKpPlusAccel" action="CtrlKpPlus"/>
<accelerator name="CtrlKpMinusAccel" action="CtrlKpMinus"/>
<accelerator name="CtrlKpZeroAccel" action="CtrlKpZero"/>
<accelerator name="CtrlInsertAccel" action="CtrlInsert" />
<accelerator name="FitPageAccel" action ="FitPage" />
<accelerator name="FitWidthAccel" action ="FitWidth" />
@@ -324,6 +324,8 @@ static const GtkActionEntry accel_entries[] = {
G_CALLBACK (ev_previewer_window_zoom_in) },
{ "CtrlKpMinus", "zoom-out", NULL, "<control>KP_Subtract", NULL,
G_CALLBACK (ev_previewer_window_zoom_out) },
{ "CtrlKpZero", "zoom-original", NULL, "<control>KP_0", NULL,
G_CALLBACK (ev_previewer_window_zoom_reset) },
{ "FocusPageSelector", NULL, "", "<control>l", NULL,
G_CALLBACK (ev_previewer_window_focus_page_selector) }

@@ -6404,6 +6404,8 @@ static const GtkActionEntry entries[] = {
G_CALLBACK (ev_window_cmd_view_zoom_in) },
{ "CtrlKpMinus", "zoom-out", NULL, "<control>KP_Subtract", NULL,
G_CALLBACK (ev_window_cmd_view_zoom_out) },
{ "CtrlKpZero", "zoom-original", NULL, "<control>KP_0", NULL,
G_CALLBACK (ev_window_cmd_view_zoom_reset) },
{ "CtrlInsert", "edit-copy", NULL, "<control>Insert", NULL,
G_CALLBACK (ev_window_cmd_edit_copy) },
{ "FitPage", EV_STOCK_ZOOM_PAGE, NULL, "f", NULL,

0 comments on commit 1c2e9ea

Please sign in to comment.
You can’t perform that action at this time.