Skip to content

Commit 9a163d8

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. More generic way of 8c6ad1d and d06f3d3. Fixes: mpv-player#15993
1 parent 630a036 commit 9a163d8

File tree

1 file changed

+31
-6
lines changed

1 file changed

+31
-6
lines changed

etc/input.conf

+31-6
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,6 @@
6767
#ZOOMIN add video-zoom 0.1 # zoom in
6868
#Alt+- add video-zoom -0.1 # zoom out
6969
#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
7270
#Ctrl+WHEEL_UP script-binding positioning/cursor-centric-zoom 0.1 # zoom in towards the cursor
7371
#Ctrl+WHEEL_DOWN script-binding positioning/cursor-centric-zoom -0.1 # zoom out towards the cursor
7472
#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
@@ -110,16 +108,12 @@
110108
#x add sub-delay +0.1 # delay subtitles by 100 ms
111109
#ctrl++ add audio-delay 0.100 # change audio/video sync by delaying the audio
112110
#ctrl+- add audio-delay -0.100 # change audio/video sync by shifting the audio earlier
113-
#ctrl+KP_ADD add audio-delay 0.100 # change audio/video sync by delaying the audio
114-
#ctrl+KP_SUBTRACT add audio-delay -0.100 # change audio/video sync by shifting the audio earlier
115111
#G add sub-scale +0.1 # increase the subtitle font size
116112
#F add sub-scale -0.1 # decrease the subtitle font size
117113
#9 add volume -2
118114
#/ add volume -2
119-
#KP_DIVIDE add volume -2
120115
#0 add volume 2
121116
#* add volume 2
122-
#KP_MULTIPLY add volume 2
123117
#m cycle mute # toggle mute
124118
#1 add contrast -1
125119
#2 add contrast 1
@@ -178,6 +172,7 @@
178172
#ctrl+c quit 4
179173
#Ctrl+v loadfile ${clipboard/text} append-play; show-text '+ ${clipboard/text}' # append the copied path
180174
#DEL script-binding osc/visibility # cycle OSC visibility between never, auto (mouse-move) and always
175+
#KP_DEL script-binding osc/visibility # cycle OSC visibility between never, auto (mouse-move) and always
181176
#ctrl+h cycle-values hwdec "no" "auto" # toggle hardware decoding
182177
#F8 show-text ${playlist} # show the playlist
183178
#F9 show-text ${track-list} # show the list of video, audio and sub tracks
@@ -232,6 +227,36 @@
232227
#Ctrl+KP_UP add video-align-y -0.01 # align video up
233228
#Ctrl+KP_PGUP add video-align-x 0.01; add video-align-y -0.01 # align video right and up
234229

230+
#
231+
# Aliases for keypad keys
232+
#
233+
#KP_ADD keypress +
234+
#KP_BEGIN keypress BEGIN
235+
#KP_DEC keypress ,
236+
#KP_DEL keypress DEL
237+
#KP_DIVIDE keypress /
238+
#KP_DOWN keypress DOWN
239+
#KP_END keypress END
240+
#KP_ENTER keypress ENTER
241+
#KP_HOME keypress HOME
242+
#KP_INS keypress INS
243+
#KP_LEFT keypress LEFT
244+
#KP_MULTIPLY keypress *
245+
#KP_PGDWN keypress PGDWN
246+
#KP_PGUP keypress PGUP
247+
#KP_RIGHT keypress RIGHT
248+
#KP_SUBTRACT keypress -
249+
#KP_UP keypress UP
250+
251+
#Alt+KP_ADD keypress Alt++
252+
#Alt+KP_SUBTRACT keypress Alt+-
253+
#Ctrl+KP_ADD keypress Ctrl++
254+
#Ctrl+KP_SUBTRACT keypress Ctrl+-
255+
#Shift+KP_END keypress Shift+END
256+
#Shift+KP_HOME keypress Shift+HOME
257+
#Shift+KP_PGDWN keypress Shift+PGDWN
258+
#Shift+KP_PGUP keypress Shift+PGUP
259+
235260
#
236261
# Legacy bindings (may or may not be removed in the future)
237262
#

0 commit comments

Comments
 (0)