Commit b88c8f40 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Lua RC: remove non-working menu command

parent e715fddb
...@@ -506,15 +506,6 @@ function listvalue(obj,var) ...@@ -506,15 +506,6 @@ function listvalue(obj,var)
end end
end end
function menu(name,client,value)
local map = { on='show', off='hide', up='up', down='down', left='prev', right='next', ['select']='activate' }
if map[value] and vlc.osd.menu[map[value]] then
vlc.osd.menu[map[value]]()
else
client:append("Unknown menu command '"..tostring(value).."'")
end
end
function hotkey(name, client, value) function hotkey(name, client, value)
if not value then if not value then
client:append("Please specify a hotkey (ie key-quit or quit)") client:append("Please specify a hotkey (ie key-quit or quit)")
...@@ -584,7 +575,6 @@ commands_ordered = { ...@@ -584,7 +575,6 @@ commands_ordered = {
{ "snapshot"; { func = common.snapshot; help = "take video snapshot" } }; { "snapshot"; { func = common.snapshot; help = "take video snapshot" } };
{ "strack"; { func = skip(listvalue("input","spu-es")); args = "[X]"; help = "set/get subtitles track" } }; { "strack"; { func = skip(listvalue("input","spu-es")); args = "[X]"; help = "set/get subtitles track" } };
{ "hotkey"; { func = hotkey; args = "[hotkey name]"; help = "simulate hotkey press"; adv = true; aliases = { "key" } } }; { "hotkey"; { func = hotkey; args = "[hotkey name]"; help = "simulate hotkey press"; adv = true; aliases = { "key" } } };
{ "menu"; { func = menu; args = "[on|off|up|down|left|right|select]"; help = "use menu"; adv = true } };
{ "" }; { "" };
{ "vlm"; { func = load_vlm; help = "load the VLM" } }; { "vlm"; { func = load_vlm; help = "load the VLM" } };
{ "set"; { func = set_env; args = "[var [value]]"; help = "set/get env var"; adv = true } }; { "set"; { func = set_env; args = "[var [value]]"; help = "set/get env var"; adv = true } };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment