From ffe89415fec9ccfee5647dc473ae570591fa4c57 Mon Sep 17 00:00:00 2001 From: Ricardo Constantino Date: Mon, 5 Nov 2018 23:14:43 +0000 Subject: osc: add mouse mid-button as alias to shift+left button --- player/lua/osc.lua | 3 +++ 1 file changed, 3 insertions(+) (limited to 'player') 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"}, -- cgit v1.2.3