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
12d6fe8f
Commit
12d6fe8f
authored
Jun 06, 2003
by
Cyril Deguet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* key shortcuts for X11 skins are now working
parent
b67f0f23
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
11 deletions
+7
-11
modules/gui/skins/x11/x11_run.cpp
modules/gui/skins/x11/x11_run.cpp
+7
-11
No files found.
modules/gui/skins/x11/x11_run.cpp
View file @
12d6fe8f
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* x11_run.cpp:
* x11_run.cpp:
*****************************************************************************
*****************************************************************************
* Copyright (C) 2003 VideoLAN
* Copyright (C) 2003 VideoLAN
* $Id: x11_run.cpp,v 1.1
5 2003/06/05 22:16:15
asmax Exp $
* $Id: x11_run.cpp,v 1.1
6 2003/06/06 19:40:37
asmax Exp $
*
*
* Authors: Cyril Deguet <asmax@videolan.org>
* Authors: Cyril Deguet <asmax@videolan.org>
*
*
...
@@ -83,25 +83,21 @@ int ProcessEvent( intf_thread_t *p_intf, VlcProc *proc, XEvent *event )
...
@@ -83,25 +83,21 @@ int ProcessEvent( intf_thread_t *p_intf, VlcProc *proc, XEvent *event )
// Process keyboard shortcuts
// Process keyboard shortcuts
if
(
msg
==
KeyPress
)
if
(
msg
==
KeyPress
)
{
{
/*
int KeyModifier = 0;
int
KeyModifier
=
0
;
// If key is ALT
// If key is ALT
if( ((
GdkEventKey *)event)->state & GDK_MOD1_MASK
)
if
(
((
XKeyEvent
*
)
event
)
->
state
&
Mod1Mask
)
{
{
KeyModifier
=
1
;
KeyModifier
=
1
;
}
}
// If key is CTRL
// If key is CTRL
else if( ((
GdkEventKey *)event)->state & GDK_CONTROL_MASK
)
else
if
(
((
XKeyEvent
*
)
event
)
->
state
&
ControlMask
)
{
{
KeyModifier
=
2
;
KeyModifier
=
2
;
}
}
int key = ((GdkEventKey *)event)->keyval;
// Take the second keysym = upper case character
// Translate into lower case
int
key
=
XLookupKeysym
(
(
XKeyEvent
*
)
event
,
1
);
if( key >= 'a' && key <= 'z' )
{
key -= ('a' - 'A');
}
if
(
KeyModifier
>
0
)
if
(
KeyModifier
>
0
)
p_intf->p_sys->p_theme->EvtBank->TestShortcut( key , KeyModifier );
*/
p_intf
->
p_sys
->
p_theme
->
EvtBank
->
TestShortcut
(
key
,
KeyModifier
);
}
}
// Send event
// Send event
...
...
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