Closed verygoodlee closed 10 months ago
maybe it's a mpv bug, mp.add_forced_key_binding("MBTN_LEFT_DBL",...)
doesn't overwrite the user's custom bindings in input.conf.
#input.conf
MBTN_LEFT_DBL show-text 'aaa'
--test.lua
mp.add_forced_key_binding("MBTN_LEFT_DBL", "MBTN_LEFT_DBL", function()
mp.commandv("show-text", "bbb")
end)
binding success, but still show 'aaa'
update: Confirmed to be a bug in mpv mpv-player/mpv#13083
我的建议是不要绑定 _DBL
, 逻辑上和 @double_click
冲突.
In this case, both
MBTN_LEFT double_click
in json conf andMBTN_LEFT_DBL
in input.conf have taken effect, double click cycle fullscreen twice.In general, json conf overrides input.conf for the same keys, but the
MBTN_LEFT_DBL
can't be ignored.