Skip to content

Commit 185e7b9

Browse files
raveit65raveit65
authored andcommitted
shell: add keypad accels for zoom_reset
1 parent 580e4fa commit 185e7b9

File tree

4 files changed

+6
-0
lines changed

4 files changed

+6
-0
lines changed

data/atril-previewer-ui.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,5 @@
2626
<accelerator name="KpMinusAccel" action="KpMinus"/>
2727
<accelerator name="CtrlKpPlusAccel" action="CtrlKpPlus"/>
2828
<accelerator name="CtrlKpMinusAccel" action="CtrlKpMinus"/>
29+
<accelerator name="CtrlKpZeroAccel" action="CtrlKpZero"/>
2930
</ui>

data/atril-ui.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@
129129
<accelerator name="KpMinusAccel" action="KpMinus"/>
130130
<accelerator name="CtrlKpPlusAccel" action="CtrlKpPlus"/>
131131
<accelerator name="CtrlKpMinusAccel" action="CtrlKpMinus"/>
132+
<accelerator name="CtrlKpZeroAccel" action="CtrlKpZero"/>
132133
<accelerator name="CtrlInsertAccel" action="CtrlInsert" />
133134
<accelerator name="FitPageAccel" action ="FitPage" />
134135
<accelerator name="FitWidthAccel" action ="FitWidth" />

previewer/ev-previewer-window.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,8 @@ static const GtkActionEntry accel_entries[] = {
324324
G_CALLBACK (ev_previewer_window_zoom_in) },
325325
{ "CtrlKpMinus", "zoom-out", NULL, "<control>KP_Subtract", NULL,
326326
G_CALLBACK (ev_previewer_window_zoom_out) },
327+
{ "CtrlKpZero", "zoom-original", NULL, "<control>KP_0", NULL,
328+
G_CALLBACK (ev_previewer_window_zoom_reset) },
327329
{ "FocusPageSelector", NULL, "", "<control>l", NULL,
328330
G_CALLBACK (ev_previewer_window_focus_page_selector) }
329331

shell/ev-window.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6404,6 +6404,8 @@ static const GtkActionEntry entries[] = {
64046404
G_CALLBACK (ev_window_cmd_view_zoom_in) },
64056405
{ "CtrlKpMinus", "zoom-out", NULL, "<control>KP_Subtract", NULL,
64066406
G_CALLBACK (ev_window_cmd_view_zoom_out) },
6407+
{ "CtrlKpZero", "zoom-original", NULL, "<control>KP_0", NULL,
6408+
G_CALLBACK (ev_window_cmd_view_zoom_reset) },
64076409
{ "CtrlInsert", "edit-copy", NULL, "<control>Insert", NULL,
64086410
G_CALLBACK (ev_window_cmd_edit_copy) },
64096411
{ "FitPage", EV_STOCK_ZOOM_PAGE, NULL, "f", NULL,

0 commit comments

Comments
 (0)