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
9d6f096a
Commit
9d6f096a
authored
May 14, 2007
by
Damien Fouilleul
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- hotkeys: leave full screenscreen hotkey (defaulted to ESC), patch by Sergey Volk
parent
6f0954b7
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
9 deletions
+24
-9
include/vlc_keys.h
include/vlc_keys.h
+2
-1
modules/control/hotkeys.c
modules/control/hotkeys.c
+8
-1
src/libvlc-module.c
src/libvlc-module.c
+14
-7
No files found.
include/vlc_keys.h
View file @
9d6f096a
...
...
@@ -230,7 +230,7 @@ static inline int StringToKey( char *psz_key )
#define ACTIONID_NEXT 7
#define ACTIONID_SLOWER 8
#define ACTIONID_FASTER 9
#define ACTIONID_
FULLSCREEN
10
#define ACTIONID_
TOGGLE_FULLSCREEN
10
#define ACTIONID_VOL_UP 11
#define ACTIONID_VOL_DOWN 12
#define ACTIONID_NAV_ACTIVATE 13
...
...
@@ -308,3 +308,4 @@ static inline int StringToKey( char *psz_key )
#define ACTIONID_RANDOM 81
#define ACTIONID_LOOP 82
#define ACTIONID_WALLPAPER 83
#define ACTIONID_LEAVE_FULLSCREEN 84
modules/control/hotkeys.c
View file @
9d6f096a
...
...
@@ -283,7 +283,7 @@ static void Run( intf_thread_t *p_intf )
{
if
(
p_vout
)
vout_Control
(
p_vout
,
VOUT_SNAPSHOT
);
}
else
if
(
i_action
==
ACTIONID_FULLSCREEN
)
else
if
(
i_action
==
ACTIONID_
TOGGLE_
FULLSCREEN
)
{
if
(
p_vout
)
{
...
...
@@ -298,6 +298,13 @@ static void Run( intf_thread_t *p_intf )
var_Set
(
p_playlist
,
"fullscreen"
,
val
);
}
}
else
if
(
i_action
==
ACTIONID_LEAVE_FULLSCREEN
)
{
if
(
p_vout
&&
var_GetBool
(
p_vout
,
"fullscreen"
)
)
{
var_SetBool
(
p_vout
,
"fullscreen"
,
VLC_FALSE
);
}
}
else
if
(
i_action
==
ACTIONID_WALLPAPER
)
{
if
(
p_vout
)
...
...
src/libvlc-module.c
View file @
9d6f096a
...
...
@@ -1021,8 +1021,10 @@ static const char *ppsz_pltree_descriptions[] = { N_("Default"), N_("Always"), N
#define HOTKEY_CAT_LONGTEXT N_( "These settings are the global VLC key " \
"bindings, known as \"hotkeys\"." )
#define FULLSCREEN_KEY_TEXT N_("Fullscreen")
#define FULLSCREEN_KEY_LONGTEXT N_("Select the hotkey to use to swap fullscreen state.")
#define TOGGLE_FULLSCREEN_KEY_TEXT N_("Fullscreen")
#define TOGGLE_FULLSCREEN_KEY_LONGTEXT N_("Select the hotkey to use to swap fullscreen state.")
#define LEAVE_FULLSCREEN_KEY_TEXT N_("Leave fullscreen")
#define LEAVE_FULLSCREEN_KEY_LONGTEXT N_("Select the hotkey to use to leave fullscreen state.")
#define PLAY_PAUSE_KEY_TEXT N_("Play/Pause")
#define PLAY_PAUSE_KEY_LONGTEXT N_("Select the hotkey to use to swap paused state.")
#define PAUSE_KEY_TEXT N_("Pause only")
...
...
@@ -1807,7 +1809,8 @@ vlc_module_begin();
* show info KEY_MODIFIER_COMMAND|'i'
* help KEY_MODIFIER_COMMAND|'?'
*/
# define KEY_FULLSCREEN KEY_MODIFIER_COMMAND|'f'
# define KEY_TOGGLE_FULLSCREEN KEY_MODIFIER_COMMAND|'f'
# define KEY_LEAVE_FULLSCREEN KEY_ESC
# define KEY_PLAY_PAUSE KEY_MODIFIER_COMMAND|'p'
# define KEY_PAUSE KEY_UNSET
# define KEY_PLAY KEY_UNSET
...
...
@@ -1892,7 +1895,8 @@ vlc_module_begin();
# define KEY_WALLPAPER KEY_MODIFIER_COMMAND|'w'
#else
# define KEY_FULLSCREEN 'f'
# define KEY_TOGGLE_FULLSCREEN 'f'
# define KEY_LEAVE_FULLSCREEN KEY_ESC
# define KEY_PLAY_PAUSE KEY_SPACE
# define KEY_PAUSE KEY_UNSET
# define KEY_PLAY KEY_UNSET
...
...
@@ -1978,8 +1982,10 @@ vlc_module_begin();
# define KEY_WALLPAPER 'w'
#endif
add_key
(
"key-fullscreen"
,
KEY_FULLSCREEN
,
NULL
,
FULLSCREEN_KEY_TEXT
,
FULLSCREEN_KEY_LONGTEXT
,
VLC_FALSE
);
add_key
(
"key-toggle-fullscreen"
,
KEY_TOGGLE_FULLSCREEN
,
NULL
,
TOGGLE_FULLSCREEN_KEY_TEXT
,
TOGGLE_FULLSCREEN_KEY_LONGTEXT
,
VLC_FALSE
);
add_key
(
"key-leave-fullscreen"
,
KEY_LEAVE_FULLSCREEN
,
NULL
,
LEAVE_FULLSCREEN_KEY_TEXT
,
LEAVE_FULLSCREEN_KEY_LONGTEXT
,
VLC_FALSE
);
add_key
(
"key-play-pause"
,
KEY_PLAY_PAUSE
,
NULL
,
PLAY_PAUSE_KEY_TEXT
,
PLAY_PAUSE_KEY_LONGTEXT
,
VLC_FALSE
);
add_key
(
"key-pause"
,
KEY_PAUSE
,
NULL
,
PAUSE_KEY_TEXT
,
...
...
@@ -2285,7 +2291,8 @@ const struct hotkey libvlc_hotkeys[] =
{
"key-next"
,
ACTIONID_NEXT
,
0
,
0
,
0
,
0
},
{
"key-faster"
,
ACTIONID_FASTER
,
0
,
0
,
0
,
0
},
{
"key-slower"
,
ACTIONID_SLOWER
,
0
,
0
,
0
,
0
},
{
"key-fullscreen"
,
ACTIONID_FULLSCREEN
,
0
,
0
,
0
,
0
},
{
"key-toggle-fullscreen"
,
ACTIONID_TOGGLE_FULLSCREEN
,
0
,
0
,
0
,
0
},
{
"key-leave-fullscreen"
,
ACTIONID_LEAVE_FULLSCREEN
,
0
,
0
,
0
,
0
},
{
"key-vol-up"
,
ACTIONID_VOL_UP
,
0
,
0
,
0
,
0
},
{
"key-vol-down"
,
ACTIONID_VOL_DOWN
,
0
,
0
,
0
,
0
},
{
"key-vol-mute"
,
ACTIONID_VOL_MUTE
,
0
,
0
,
0
,
0
},
...
...
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