add new keybind, Ctrl-a to toggle animation (#33)

* add new keybind, Ctrl-a to toggle animation

Closes: https://github.com/nsxiv/nsxiv/issues/27

* Format consistency

This keeps in line with other actions that have multiple keybinds

Co-authored-by: eylles <ed.ylles1997@gmail.com>
Co-authored-by: Berke Kocaoğlu <berke.kocaoglu@metu.edu.tr>
This commit is contained in:
N-R-K 2021-09-13 00:13:13 +06:00 committed by Berke Kocaoğlu
parent f7557c55b5
commit ca692ac485
2 changed files with 2 additions and 1 deletions

View File

@ -112,6 +112,7 @@ static const keymap_t keys[] = {
{ ControlMask, XK_n, i_navigate_frame, +1 },
{ ControlMask, XK_p, i_navigate_frame, -1 },
{ ControlMask, XK_space, i_toggle_animation, None },
{ ControlMask, XK_a, i_toggle_animation, None },
{ 0, XK_h, i_scroll, DIR_LEFT },
{ 0, XK_Left, i_scroll, DIR_LEFT },
{ 0, XK_j, i_scroll, DIR_DOWN },

2
sxiv.1
View File

@ -262,7 +262,7 @@ Go
.I count
frames of a multi-frame image backward.
.TP
.B Ctrl-Space
.BR Ctrl-a ", " Ctrl-Space
Play/stop animations of multi-frame images.
.TP
Panning: