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:
parent
6357c27ab6
commit
d706f8181a
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user