1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-23 23:32:26 +00:00

lua: fix add_key_binding()

add_key_binding() didn't work, because it passed a flag that was
renamed. add_forced_key_binding() worked, but did the wrong thing.
This commit is contained in:
wm4 2014-03-01 00:42:53 +01:00
parent 6357c27ab6
commit d706f8181a

View File

@ -95,10 +95,10 @@ local function update_key_bindings()
local def = i == 1 local def = i == 1
if def then if def then
section = "input_" .. mp.script_name section = "input_" .. mp.script_name
flags = "builtin" flags = "default"
else else
section = "input_forced_" .. mp.script_name section = "input_forced_" .. mp.script_name
flags = "default" flags = "force"
end end
local cfg = "" local cfg = ""
for k, v in pairs(key_bindings) do for k, v in pairs(key_bindings) do