Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
4468f686
Commit
4468f686
authored
Dec 27, 2009
by
Antoine Cellerier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix rc hotkey command.
(accepts full hotkey names or hotkey names without the leading key-)
parent
469613e2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
share/lua/intf/rc.lua
share/lua/intf/rc.lua
+9
-1
No files found.
share/lua/intf/rc.lua
View file @
4468f686
...
@@ -446,6 +446,14 @@ function menu(name,client,value)
...
@@ -446,6 +446,14 @@ function menu(name,client,value)
end
end
end
end
function
hotkey
(
name
,
client
,
value
)
if
not
value
then
client
:
append
(
"Please specify a hotkey (ie key-quit or quit)"
)
elseif
not
common
.
hotkey
(
value
)
and
not
common
.
hotkey
(
"key-"
..
value
)
then
client
:
append
(
"Unknown hotkey '"
..
value
..
"'"
)
end
end
function
eval
(
client
,
val
)
function
eval
(
client
,
val
)
client
:
append
(
tostring
(
loadstring
(
"return "
..
val
)()))
client
:
append
(
tostring
(
loadstring
(
"return "
..
val
)()))
end
end
...
@@ -507,7 +515,7 @@ commands_ordered = {
...
@@ -507,7 +515,7 @@ commands_ordered = {
{
"vzoom"
;
{
func
=
skip
(
listvalue
(
"vout"
,
"zoom"
));
args
=
"[X]"
;
help
=
"set/get video zoom"
;
aliases
=
{
"zoom"
}
}
};
{
"vzoom"
;
{
func
=
skip
(
listvalue
(
"vout"
,
"zoom"
));
args
=
"[X]"
;
help
=
"set/get video zoom"
;
aliases
=
{
"zoom"
}
}
};
{
"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
=
skip
(
common
.
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
}
};
{
"menu"
;
{
func
=
menu
;
args
=
"[on|off|up|down|left|right|select]"
;
help
=
"use menu"
;
adv
=
true
}
};
{
""
};
{
""
};
{
"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
}
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment