Skip to content

Commit 7dd5ddf

Browse files
committed
input.conf: duplicate some keybind to keypad siblings
They still can be remapped individually by users, but let's duplicate them by default. Same as 8c6ad1d. Fixes: mpv-player#15993
1 parent 630a036 commit 7dd5ddf

File tree

2 files changed

+23
-10
lines changed

2 files changed

+23
-10
lines changed

DOCS/man/mpv.rst

+8-8
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,11 @@ default, the ? key toggles the display of this list.
5353
Keyboard Control
5454
----------------
5555

56-
LEFT and RIGHT
56+
LEFT / KP_LEFT and RIGHT / KP_RIGHT
5757
Seek backward/forward 5 seconds. Shift+arrow does a 1 second exact seek
5858
(see ``--hr-seek``).
5959

60-
UP and DOWN
60+
UP / KP_UP and DOWN / KP_DOWN
6161
Seek forward/backward 1 minute. Shift+arrow does a 5 second exact seek (see
6262
``--hr-seek``).
6363

@@ -92,10 +92,10 @@ Shift+Ctrl+BACKSPACE
9292
< and >
9393
Go backward/forward in the playlist.
9494

95-
ENTER
95+
ENTER and KP_ENTER
9696
Go forward in the playlist.
9797

98-
Shift+HOME and Shift+END
98+
Shift+HOME / Shift+KP_HOME and Shift+END / Shift+KP_END
9999
Go to the first/last playlist entry.
100100

101101
p and SPACE
@@ -207,15 +207,15 @@ Ctrl+s
207207
Take a screenshot, as the window shows it (with subtitles, OSD, and scaled
208208
video).
209209

210-
HOME
210+
HOME and KP_HOME
211211
Seek to the beginning of the file.
212212

213-
PGUP and PGDWN
213+
PGUP / KP_PGUP and PGDWN / KP_PGDWN
214214
Seek to the beginning of the previous/next chapter. In most cases,
215215
"previous" will actually go to the beginning of the current chapter; see
216216
``--chapter-seek-threshold``.
217217

218-
Shift+PGUP and Shift+PGDWN
218+
Shift+PGUP / Shift+KP_PGUP and Shift+PGDWN / Shift+KP_PGDWN
219219
Seek backward or forward by 10 minutes. (This used to be mapped to
220220
PGUP/PGDWN without Shift.)
221221

@@ -263,7 +263,7 @@ i and I
263263
Toggle an overlay displaying the active key bindings. See `STATS`_ for more
264264
information.
265265

266-
DEL
266+
DEL and KP_DEL
267267
Cycle OSC visibility between never / auto (mouse-move) / always
268268

269269
\`

etc/input.conf

+15-2
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,10 @@
4949
#LEFT seek -5 # seek 5 seconds backward
5050
#UP seek 60 # seek 1 minute forward
5151
#DOWN seek -60 # seek 1 minute backward
52+
#KP_RIGHT seek 5 # seek 5 seconds forward
53+
#KP_LEFT seek -5 # seek 5 seconds backward
54+
#KP_UP seek 60 # seek 1 minute forward
55+
#KP_DOWN seek -60 # seek 1 minute backward
5256
# Do smaller, always exact (non-keyframe-limited), seeks with shift.
5357
# Don't show them on the OSD (no-osd).
5458
#Shift+RIGHT no-osd seek 1 exact # seek exactly 1 second forward
@@ -67,16 +71,21 @@
6771
#ZOOMIN add video-zoom 0.1 # zoom in
6872
#Alt+- add video-zoom -0.1 # zoom out
6973
#ZOOMOUT add video-zoom -0.1 # zoom out
70-
#Alt+KP_ADD add video-zoom 0.1 # zoom in
71-
#Alt+KP_SUBTRACT add video-zoom -0.1 # zoom out
74+
#Alt+KP_ADD add video-zoom 0.1 # zoom in
75+
#Alt+KP_SUBTRACT add video-zoom -0.1 # zoom out
7276
#Ctrl+WHEEL_UP script-binding positioning/cursor-centric-zoom 0.1 # zoom in towards the cursor
7377
#Ctrl+WHEEL_DOWN script-binding positioning/cursor-centric-zoom -0.1 # zoom out towards the cursor
7478
#Alt+BS set video-zoom 0; no-osd set panscan 0; no-osd set video-pan-x 0; no-osd set video-pan-y 0; no-osd set video-align-x 0; no-osd set video-align-y 0 # reset zoom and pan settings
7579
#HOME seek 0 absolute # seek to the start
80+
#KP_HOME seek 0 absolute # seek to the start
7681
#PGUP add chapter 1 # seek to the next chapter
7782
#PGDWN add chapter -1 # seek to the previous chapter
83+
#KP_PGUP add chapter 1 # seek to the next chapter
84+
#KP_PGDWN add chapter -1 # seek to the previous chapter
7885
#Shift+PGUP seek 600 # seek 10 minutes forward
7986
#Shift+PGDWN seek -600 # seek 10 minutes backward
87+
#Shift+KP_PGUP seek 600 # seek 10 minutes forward
88+
#Shift+KP_PGDWN seek -600 # seek 10 minutes backward
8089
#[ multiply speed 1/1.1 # decrease the playback speed
8190
#] multiply speed 1.1 # increase the playback speed
8291
#{ multiply speed 0.5 # halve the playback speed
@@ -95,9 +104,12 @@
95104
#SPACE cycle pause # toggle pause/playback mode
96105
#> playlist-next # skip to the next file
97106
#ENTER playlist-next # skip to the next file
107+
#KP_ENTER playlist-next # skip to the next file
98108
#< playlist-prev # skip to the previous file
99109
#Shift+HOME no-osd set playlist-pos 0 # skip to the first file
100110
#Shift+END no-osd set playlist-pos-1 ${playlist-count} # skip to the last file
111+
#Shift+KP_HOME no-osd set playlist-pos 0 # skip to the first file
112+
#Shift+KP_END no-osd set playlist-pos-1 ${playlist-count} # skip to the last file
101113
#O no-osd cycle-values osd-level 3 1 # toggle displaying the OSD on user interaction or always
102114
#o show-progress # show playback progress
103115
#P show-progress # show playback progress
@@ -178,6 +190,7 @@
178190
#ctrl+c quit 4
179191
#Ctrl+v loadfile ${clipboard/text} append-play; show-text '+ ${clipboard/text}' # append the copied path
180192
#DEL script-binding osc/visibility # cycle OSC visibility between never, auto (mouse-move) and always
193+
#KP_DEL script-binding osc/visibility # cycle OSC visibility between never, auto (mouse-move) and always
181194
#ctrl+h cycle-values hwdec "no" "auto" # toggle hardware decoding
182195
#F8 show-text ${playlist} # show the playlist
183196
#F9 show-text ${track-list} # show the list of video, audio and sub tracks

0 commit comments

Comments
 (0)