summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRicardo Constantino <wiiaboo@gmail.com>2018-11-05 23:14:43 +0000
committerwm4 <1387750+wm4@users.noreply.github.com>2019-09-21 15:30:20 +0200
commitffe89415fec9ccfee5647dc473ae570591fa4c57 (patch)
tree97e211a37aeabb86beca8f19652c5c72452ccb6d
parentcdad5cc65f4c6032b284ef6a4ff9874ad4018a63 (diff)
downloadmpv-ffe89415fec9ccfee5647dc473ae570591fa4c57.tar.bz2
mpv-ffe89415fec9ccfee5647dc473ae570591fa4c57.tar.xz
osc: add mouse mid-button as alias to shift+left button
-rw-r--r--player/lua/osc.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/player/lua/osc.lua b/player/lua/osc.lua
index ac0d619e1c..6297aeb3b8 100644
--- a/player/lua/osc.lua
+++ b/player/lua/osc.lua
@@ -2488,6 +2488,9 @@ mp.set_key_bindings({
function(e) process_event("shift+mbtn_left", "down") end},
{"mbtn_right", function(e) process_event("mbtn_right", "up") end,
function(e) process_event("mbtn_right", "down") end},
+ -- alias to shift_mbtn_left for single-handed mouse use
+ {"mbtn_mid", function(e) process_event("shift+mbtn_left", "up") end,
+ function(e) process_event("shift+mbtn_left", "down") end},
{"wheel_up", function(e) process_event("wheel_up", "press") end},
{"wheel_down", function(e) process_event("wheel_down", "press") end},
{"mbtn_left_dbl", "ignore"},