Skip to content

Commit e8dabce

Browse files
committed
input.conf: add context menu bindings
Rebind right click and MENU to show the context menu. Shift+F10 is also bound because it is a standard context menu binding. MENU is not added to restore-old-bindings.conf because it is uncommon.
1 parent a44744d commit e8dabce

File tree

3 files changed

+12
-4
lines changed

3 files changed

+12
-4
lines changed

DOCS/man/mpv.rst

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -351,11 +351,14 @@ g-b
351351
g-r
352352
Show the values of all properties.
353353

354-
g-m, MENU, Ctrl+p
354+
g-m, Ctrl+p
355355
Show a menu with miscellaneous entries.
356356

357357
See `SELECT`_ for more information.
358358

359+
MENU, Shift+F10
360+
Show the context menu (see `CONTEXT MENU`_).
361+
359362
(The following keys are valid if you have a keyboard with multimedia keys.)
360363

361364
PAUSE
@@ -384,7 +387,7 @@ Left double click
384387
Toggle fullscreen on/off.
385388

386389
Right click
387-
Toggle pause on/off.
390+
Show the context menu (see `CONTEXT MENU`_).
388391

389392
Forward/Back button
390393
Skip to next/previous entry in playlist.

etc/input.conf

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030

3131
#MBTN_LEFT ignore # don't do anything
3232
#MBTN_LEFT_DBL cycle fullscreen # toggle fullscreen
33-
#MBTN_RIGHT cycle pause # toggle pause/playback mode
33+
#MBTN_RIGHT script-binding select/context-menu # show the context menu
3434
#MBTN_BACK playlist-prev # skip to the previous file
3535
#MBTN_FORWARD playlist-next # skip to the next file
3636
#Ctrl+MBTN_LEFT script-binding positioning/drag-to-pan # pan around the clicked point
@@ -196,8 +196,9 @@
196196
#g-b script-binding select/select-binding
197197
#g-r script-binding select/show-properties
198198
#g-m script-binding select/menu
199-
#MENU script-binding select/menu
200199
#ctrl+p script-binding select/menu
200+
#MENU script-binding select/context-menu
201+
#Shift+F10 script-binding select/context-menu
201202

202203
#Alt+KP1 add video-rotate -1 # rotate video counterclockwise by 1 degree
203204
#Alt+KP5 set video-rotate 0 # reset rotation

etc/restore-old-bindings.conf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99
#
1010
# Older installations use ~/.mpv/input.conf instead.
1111

12+
# changed in mpv 0.41.0
13+
14+
MBTN_RIGHT cycle pause
15+
1216
# changed in mpv 0.37.0
1317

1418
WHEEL_UP seek 10 # seek 10 seconds forward

0 commit comments

Comments
 (0)