Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
ddfbadf3
Commit
ddfbadf3
authored
Apr 12, 2013
by
Martin Zeman
Committed by
Jean-Baptiste Kempf
Apr 13, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added a hotkey for playlist deletion.
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
b63d80bf
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
1 deletion
+16
-1
include/vlc_keys.h
include/vlc_keys.h
+1
-0
modules/control/hotkeys.c
modules/control/hotkeys.c
+6
-1
src/config/keys.c
src/config/keys.c
+1
-0
src/libvlc-module.c
src/libvlc-module.c
+8
-0
No files found.
include/vlc_keys.h
View file @
ddfbadf3
...
...
@@ -159,6 +159,7 @@ typedef enum vlc_action {
ACTIONID_PLAY_BOOKMARK9
,
ACTIONID_PLAY_BOOKMARK10
,
/* end of contiguous zone */
ACTIONID_PLAY_CLEAR
,
ACTIONID_SUBDELAY_UP
,
ACTIONID_SUBDELAY_DOWN
,
ACTIONID_SUBPOS_UP
,
...
...
modules/control/hotkeys.c
View file @
ddfbadf3
...
...
@@ -241,7 +241,12 @@ static int PutAction( intf_thread_t *p_intf, int i_action )
case
ACTIONID_SET_BOOKMARK10
:
SetBookmark
(
p_intf
,
i_action
-
ACTIONID_SET_BOOKMARK1
+
1
);
break
;
case
ACTIONID_PLAY_CLEAR
:
{
playlist_t
*
p_playlist
=
pl_Get
(
p_intf
);
playlist_Clear
(
p_playlist
,
pl_Unlocked
);
break
;
}
case
ACTIONID_VOL_UP
:
{
float
vol
;
...
...
src/config/keys.c
View file @
ddfbadf3
...
...
@@ -275,6 +275,7 @@ static const struct action actions[] =
{
"audiodevice-cycle"
,
ACTIONID_AUDIODEVICE_CYCLE
,
},
{
"chapter-next"
,
ACTIONID_CHAPTER_NEXT
,
},
{
"chapter-prev"
,
ACTIONID_CHAPTER_PREV
,
},
{
"clear-playlist"
,
ACTIONID_PLAY_CLEAR
,
},
{
"crop"
,
ACTIONID_CROP
,
},
{
"crop-bottom"
,
ACTIONID_CROP_BOTTOM
,
},
{
"crop-left"
,
ACTIONID_CROP_LEFT
,
},
...
...
src/libvlc-module.c
View file @
ddfbadf3
...
...
@@ -1346,6 +1346,8 @@ static const char *const mouse_wheel_texts[] =
#define SET_BOOKMARK9_KEY_TEXT N_("Set playlist bookmark 9")
#define SET_BOOKMARK10_KEY_TEXT N_("Set playlist bookmark 10")
#define SET_BOOKMARK_KEY_LONGTEXT N_("Select the key to set this playlist bookmark.")
#define PLAY_CLEAR_KEY_TEXT N_("Clear the playlist")
#define PLAY_CLEAR_KEY_LONGTEXT N_("Select the key to clear the current playlist.")
#define BOOKMARK1_TEXT N_("Playlist bookmark 1")
#define BOOKMARK2_TEXT N_("Playlist bookmark 2")
...
...
@@ -2245,6 +2247,7 @@ vlc_module_begin ()
# define KEY_RECORD "Command+Shift+r"
# define KEY_WALLPAPER "w"
# define KEY_AUDIODEVICE_CYCLE "Shift+a"
# define KEY_PLAY_CLEAR NULL
#else
/* Non Mac OS X */
/*
...
...
@@ -2361,6 +2364,9 @@ vlc_module_begin ()
# define KEY_PLAY_BOOKMARK8 "F8"
# define KEY_PLAY_BOOKMARK9 "F9"
# define KEY_PLAY_BOOKMARK10 "F10"
/* Playlist clear */
# define KEY_PLAY_CLEAR "Ctrl+w"
#endif
add_key
(
"key-toggle-fullscreen"
,
KEY_TOGGLE_FULLSCREEN
,
TOGGLE_FULLSCREEN_KEY_TEXT
,
...
...
@@ -2577,6 +2583,8 @@ vlc_module_begin ()
PLAY_BOOKMARK9_KEY_TEXT
,
PLAY_BOOKMARK_KEY_LONGTEXT
,
true
)
add_key
(
"key-play-bookmark10"
,
KEY_PLAY_BOOKMARK10
,
PLAY_BOOKMARK10_KEY_TEXT
,
PLAY_BOOKMARK_KEY_LONGTEXT
,
true
)
add_key
(
"key-clear-playlist"
,
KEY_PLAY_CLEAR
,
PLAY_CLEAR_KEY_TEXT
,
PLAY_CLEAR_KEY_LONGTEXT
,
true
)
add_string
(
"bookmark1"
,
NULL
,
...
...
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