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
1 changed files with 2 additions and 2 deletions

View File

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