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
812836af
Commit
812836af
authored
Jan 31, 2013
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hotkeys: add context menu action
parent
d83927d4
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
0 deletions
+11
-0
include/vlc_keys.h
include/vlc_keys.h
+1
-0
modules/control/hotkeys.c
modules/control/hotkeys.c
+3
-0
src/config/keys.c
src/config/keys.c
+1
-0
src/libvlc-module.c
src/libvlc-module.c
+6
-0
No files found.
include/vlc_keys.h
View file @
812836af
...
@@ -214,6 +214,7 @@ typedef enum vlc_action {
...
@@ -214,6 +214,7 @@ typedef enum vlc_action {
ACTIONID_RATE_FASTER_FINE
,
ACTIONID_RATE_FASTER_FINE
,
/* Cycle Through Program Service IDs */
/* Cycle Through Program Service IDs */
ACTIONID_PROGRAM_SID
,
ACTIONID_PROGRAM_SID
,
ACTIONID_INTF_POPUP_MENU
,
}
vlc_action_t
;
}
vlc_action_t
;
...
...
modules/control/hotkeys.c
View file @
812836af
...
@@ -166,6 +166,9 @@ static int PutAction( intf_thread_t *p_intf, int i_action )
...
@@ -166,6 +166,9 @@ static int PutAction( intf_thread_t *p_intf, int i_action )
case
ACTIONID_INTF_BOSS
:
case
ACTIONID_INTF_BOSS
:
var_TriggerCallback
(
p_intf
->
p_libvlc
,
"intf-boss"
);
var_TriggerCallback
(
p_intf
->
p_libvlc
,
"intf-boss"
);
break
;
break
;
case
ACTIONID_INTF_POPUP_MENU
:
var_TriggerCallback
(
p_intf
->
p_libvlc
,
"intf-popupmenu"
);
break
;
/* Playlist actions (including audio) */
/* Playlist actions (including audio) */
case
ACTIONID_LOOP
:
case
ACTIONID_LOOP
:
...
...
src/config/keys.c
View file @
812836af
...
@@ -288,6 +288,7 @@ static const struct action actions[] =
...
@@ -288,6 +288,7 @@ static const struct action actions[] =
{
"frame-next"
,
ACTIONID_FRAME_NEXT
,
},
{
"frame-next"
,
ACTIONID_FRAME_NEXT
,
},
{
"incr-scalefactor"
,
ACTIONID_SCALE_UP
,
},
{
"incr-scalefactor"
,
ACTIONID_SCALE_UP
,
},
{
"intf-boss"
,
ACTIONID_INTF_BOSS
,
},
{
"intf-boss"
,
ACTIONID_INTF_BOSS
,
},
{
"intf-popup-menu"
,
ACTIONID_INTF_POPUP_MENU
,
},
{
"intf-show"
,
ACTIONID_INTF_TOGGLE_FSC
,
},
{
"intf-show"
,
ACTIONID_INTF_TOGGLE_FSC
,
},
{
"jump+extrashort"
,
ACTIONID_JUMP_FORWARD_EXTRASHORT
,
},
{
"jump+extrashort"
,
ACTIONID_JUMP_FORWARD_EXTRASHORT
,
},
{
"jump+long"
,
ACTIONID_JUMP_FORWARD_LONG
,
},
{
"jump+long"
,
ACTIONID_JUMP_FORWARD_LONG
,
},
...
...
src/libvlc-module.c
View file @
812836af
...
@@ -1392,6 +1392,8 @@ static const char *const mouse_wheel_texts[] =
...
@@ -1392,6 +1392,8 @@ static const char *const mouse_wheel_texts[] =
#define INTF_HIDE_KEY_LONGTEXT N_("Lower the interface below all other windows.")
#define INTF_HIDE_KEY_LONGTEXT N_("Lower the interface below all other windows.")
#define INTF_BOSS_KEY_TEXT N_("Boss key")
#define INTF_BOSS_KEY_TEXT N_("Boss key")
#define INTF_BOSS_KEY_LONGTEXT N_("Hide the interface and pause playback.")
#define INTF_BOSS_KEY_LONGTEXT N_("Hide the interface and pause playback.")
#define INTF_POPUP_MENU_KEY_TEXT N_("Context menu")
#define INTF_POPUP_MENU_KEY_LONGTEXT N_("Show the contextual popup menu.")
#define SNAP_KEY_TEXT N_("Take video snapshot")
#define SNAP_KEY_TEXT N_("Take video snapshot")
#define SNAP_KEY_LONGTEXT N_("Takes a video snapshot and writes it to disk.")
#define SNAP_KEY_LONGTEXT N_("Takes a video snapshot and writes it to disk.")
...
@@ -2205,6 +2207,7 @@ vlc_module_begin ()
...
@@ -2205,6 +2207,7 @@ vlc_module_begin ()
# define KEY_DEINTERLACE_MODE "Shift+d"
# define KEY_DEINTERLACE_MODE "Shift+d"
# define KEY_INTF_TOGGLE_FSC "i"
# define KEY_INTF_TOGGLE_FSC "i"
# define KEY_INTF_BOSS NULL
# define KEY_INTF_BOSS NULL
# define KEY_INTF_POPUP_MENU "Menu"
# define KEY_DISC_MENU "Ctrl+m"
# define KEY_DISC_MENU "Ctrl+m"
# define KEY_TITLE_PREV "Ctrl+p"
# define KEY_TITLE_PREV "Ctrl+p"
# define KEY_TITLE_NEXT "Ctrl+n"
# define KEY_TITLE_NEXT "Ctrl+n"
...
@@ -2316,6 +2319,7 @@ vlc_module_begin ()
...
@@ -2316,6 +2319,7 @@ vlc_module_begin ()
# define KEY_DEINTERLACE_MODE "Shift+d"
# define KEY_DEINTERLACE_MODE "Shift+d"
# define KEY_INTF_TOGGLE_FSC "i"
# define KEY_INTF_TOGGLE_FSC "i"
# define KEY_INTF_BOSS NULL
# define KEY_INTF_BOSS NULL
# define KEY_INTF_POPUP_MENU "Menu"
# define KEY_DISC_MENU "Shift+m"
# define KEY_DISC_MENU "Shift+m"
# define KEY_TITLE_PREV "Shift+o"
# define KEY_TITLE_PREV "Shift+o"
# define KEY_TITLE_NEXT "Shift+b"
# define KEY_TITLE_NEXT "Shift+b"
...
@@ -2485,6 +2489,8 @@ vlc_module_begin ()
...
@@ -2485,6 +2489,8 @@ vlc_module_begin ()
add_key
(
"key-intf-boss"
,
KEY_INTF_BOSS
,
add_key
(
"key-intf-boss"
,
KEY_INTF_BOSS
,
INTF_BOSS_KEY_TEXT
,
INTF_BOSS_KEY_LONGTEXT
,
true
)
INTF_BOSS_KEY_TEXT
,
INTF_BOSS_KEY_LONGTEXT
,
true
)
add_key
(
"key-intf-popup-menu"
,
KEY_INTF_POPUP_MENU
,
INTF_POPUP_MENU_KEY_TEXT
,
INTF_POPUP_MENU_KEY_LONGTEXT
,
true
)
add_key
(
"key-snapshot"
,
KEY_SNAPSHOT
,
add_key
(
"key-snapshot"
,
KEY_SNAPSHOT
,
SNAP_KEY_TEXT
,
SNAP_KEY_LONGTEXT
,
true
)
SNAP_KEY_TEXT
,
SNAP_KEY_LONGTEXT
,
true
)
add_key
(
"key-record"
,
KEY_RECORD
,
add_key
(
"key-record"
,
KEY_RECORD
,
...
...
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