Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
87a35e06
Commit
87a35e06
authored
Apr 19, 2004
by
Andre Pang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* Add hotkeys to go back/forward in media browsing history
parent
7c144c5a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
0 deletions
+14
-0
include/vlc_keys.h
include/vlc_keys.h
+3
-0
src/libvlc.h
src/libvlc.h
+11
-0
No files found.
include/vlc_keys.h
View file @
87a35e06
...
@@ -228,3 +228,6 @@ static inline int StringToKey( char *psz_key )
...
@@ -228,3 +228,6 @@ static inline int StringToKey( char *psz_key )
/* end of contiguous zone */
/* end of contiguous zone */
#define ACTIONID_SUBDELAY_UP 46
#define ACTIONID_SUBDELAY_UP 46
#define ACTIONID_SUBDELAY_DOWN 47
#define ACTIONID_SUBDELAY_DOWN 47
#define ACTIONID_HISTORY_BACK 48
#define ACTIONID_HISTORY_FORWARD 49
src/libvlc.h
View file @
87a35e06
...
@@ -704,6 +704,11 @@ static char *ppsz_align_descriptions[] =
...
@@ -704,6 +704,11 @@ static char *ppsz_align_descriptions[] =
#define SET_BOOKMARK10_KEY_TEXT N_("Set playlist bookmark 10")
#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 SET_BOOKMARK_KEY_LONGTEXT N_("Select the key to set this playlist bookmark.")
#define HISTORY_BACK_TEXT N_("Go back in browsing history")
#define HISTORY_BACK_LONGTEXT N_("Select the key to go back (to the previous media item) in the browsing history.")
#define HISTORY_FORWARD_TEXT N_("Go forward in browsing history")
#define HISTORY_FORWARD_LONGTEXT N_("Select the key to go forward (to the next media item) in the browsing history.")
#define PLAYLIST_USAGE N_("\nPlaylist items:" \
#define PLAYLIST_USAGE N_("\nPlaylist items:" \
"\n *.mpg, *.vob plain MPEG-1/2 files" \
"\n *.mpg, *.vob plain MPEG-1/2 files" \
"\n [dvd://][device][@raw_device][@[title][,[chapter][,angle]]]" \
"\n [dvd://][device][@raw_device][@[title][,[chapter][,angle]]]" \
...
@@ -1012,6 +1017,8 @@ vlc_module_begin();
...
@@ -1012,6 +1017,8 @@ vlc_module_begin();
add_key
(
"key-play-bookmark8"
,
KEY_F8
,
NULL
,
PLAY_BOOKMARK8_KEY_TEXT
,
PLAY_BOOKMARK_KEY_LONGTEXT
,
VLC_TRUE
);
add_key
(
"key-play-bookmark8"
,
KEY_F8
,
NULL
,
PLAY_BOOKMARK8_KEY_TEXT
,
PLAY_BOOKMARK_KEY_LONGTEXT
,
VLC_TRUE
);
add_key
(
"key-play-bookmark9"
,
KEY_UNSET
,
NULL
,
PLAY_BOOKMARK9_KEY_TEXT
,
PLAY_BOOKMARK_KEY_LONGTEXT
,
VLC_TRUE
);
add_key
(
"key-play-bookmark9"
,
KEY_UNSET
,
NULL
,
PLAY_BOOKMARK9_KEY_TEXT
,
PLAY_BOOKMARK_KEY_LONGTEXT
,
VLC_TRUE
);
add_key
(
"key-play-bookmark10"
,
KEY_UNSET
,
NULL
,
PLAY_BOOKMARK10_KEY_TEXT
,
PLAY_BOOKMARK_KEY_LONGTEXT
,
VLC_TRUE
);
add_key
(
"key-play-bookmark10"
,
KEY_UNSET
,
NULL
,
PLAY_BOOKMARK10_KEY_TEXT
,
PLAY_BOOKMARK_KEY_LONGTEXT
,
VLC_TRUE
);
add_key
(
"key-history-back"
,
KEY_MODIFIER_COMMAND
|
'['
,
NULL
,
HISTORY_BACK_TEXT
,
HISTORY_BACK_LONGTEXT
,
VLC_TRUE
);
add_key
(
"key-history-forward"
,
KEY_MODIFIER_COMMAND
|
']'
,
NULL
,
HISTORY_FORWARD_TEXT
,
HISTORY_FORWARD_LONGTEXT
,
VLC_TRUE
);
#else
#else
add_key
(
"key-fullscreen"
,
'f'
,
NULL
,
FULLSCREEN_KEY_TEXT
,
FULLSCREEN_KEY_LONGTEXT
,
VLC_FALSE
);
add_key
(
"key-fullscreen"
,
'f'
,
NULL
,
FULLSCREEN_KEY_TEXT
,
FULLSCREEN_KEY_LONGTEXT
,
VLC_FALSE
);
add_key
(
"key-play-pause"
,
KEY_SPACE
,
NULL
,
PLAY_PAUSE_KEY_TEXT
,
PLAY_PAUSE_KEY_LONGTEXT
,
VLC_FALSE
);
add_key
(
"key-play-pause"
,
KEY_SPACE
,
NULL
,
PLAY_PAUSE_KEY_TEXT
,
PLAY_PAUSE_KEY_LONGTEXT
,
VLC_FALSE
);
...
@@ -1062,6 +1069,8 @@ vlc_module_begin();
...
@@ -1062,6 +1069,8 @@ vlc_module_begin();
add_key
(
"key-play-bookmark8"
,
KEY_F8
,
NULL
,
PLAY_BOOKMARK8_KEY_TEXT
,
PLAY_BOOKMARK_KEY_LONGTEXT
,
VLC_TRUE
);
add_key
(
"key-play-bookmark8"
,
KEY_F8
,
NULL
,
PLAY_BOOKMARK8_KEY_TEXT
,
PLAY_BOOKMARK_KEY_LONGTEXT
,
VLC_TRUE
);
add_key
(
"key-play-bookmark9"
,
KEY_F9
,
NULL
,
PLAY_BOOKMARK9_KEY_TEXT
,
PLAY_BOOKMARK_KEY_LONGTEXT
,
VLC_TRUE
);
add_key
(
"key-play-bookmark9"
,
KEY_F9
,
NULL
,
PLAY_BOOKMARK9_KEY_TEXT
,
PLAY_BOOKMARK_KEY_LONGTEXT
,
VLC_TRUE
);
add_key
(
"key-play-bookmark10"
,
KEY_F10
,
NULL
,
PLAY_BOOKMARK10_KEY_TEXT
,
PLAY_BOOKMARK_KEY_LONGTEXT
,
VLC_TRUE
);
add_key
(
"key-play-bookmark10"
,
KEY_F10
,
NULL
,
PLAY_BOOKMARK10_KEY_TEXT
,
PLAY_BOOKMARK_KEY_LONGTEXT
,
VLC_TRUE
);
add_key
(
"key-history-back"
,
KEY_MODIFIER_CTRL
|
'['
,
NULL
,
HISTORY_BACK_TEXT
,
HISTORY_BACK_LONGTEXT
,
VLC_TRUE
);
add_key
(
"key-history-forward"
,
KEY_MODIFIER_CTRL
|
']'
,
NULL
,
HISTORY_FORWARD_TEXT
,
HISTORY_FORWARD_LONGTEXT
,
VLC_TRUE
);
#endif
#endif
/* Usage (mainly useful for cmd line stuff) */
/* Usage (mainly useful for cmd line stuff) */
...
@@ -1148,5 +1157,7 @@ static struct hotkey p_hotkeys[] =
...
@@ -1148,5 +1157,7 @@ static struct hotkey p_hotkeys[] =
{
"key-play-bookmark8"
,
ACTIONID_PLAY_BOOKMARK8
,
0
},
{
"key-play-bookmark8"
,
ACTIONID_PLAY_BOOKMARK8
,
0
},
{
"key-play-bookmark9"
,
ACTIONID_PLAY_BOOKMARK9
,
0
},
{
"key-play-bookmark9"
,
ACTIONID_PLAY_BOOKMARK9
,
0
},
{
"key-play-bookmark10"
,
ACTIONID_PLAY_BOOKMARK10
,
0
},
{
"key-play-bookmark10"
,
ACTIONID_PLAY_BOOKMARK10
,
0
},
{
"key-history-back"
,
ACTIONID_HISTORY_BACK
,
0
},
{
"key-history-forward"
,
ACTIONID_HISTORY_FORWARD
,
0
},
{
NULL
,
0
,
0
}
{
NULL
,
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