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
dfa3c5d0
Commit
dfa3c5d0
authored
Apr 21, 2003
by
Cyril Deguet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* shortcut handling under linux
parent
474a83cf
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
3 deletions
+27
-3
defconfig
defconfig
+1
-1
modules/gui/skins/gtk2/gtk2_run.cpp
modules/gui/skins/gtk2/gtk2_run.cpp
+26
-2
No files found.
defconfig
View file @
dfa3c5d0
...
@@ -69,7 +69,7 @@ CONFIG_FFMPEG_TREE="/home/cyril/ffmpeg"
...
@@ -69,7 +69,7 @@ CONFIG_FFMPEG_TREE="/home/cyril/ffmpeg"
# CONFIG_XVID is not set
# CONFIG_XVID is not set
# CONFIG_DV is not set
# CONFIG_DV is not set
# CONFIG_FLAC is not set
# CONFIG_FLAC is not set
# CONFIG_LIBMPEG2 is not set
CONFIG_LIBMPEG2=y
CONFIG_VORBIS=y
CONFIG_VORBIS=y
# CONFIG_TREMOR is not set
# CONFIG_TREMOR is not set
# CONFIG_TARKIN is not set
# CONFIG_TARKIN is not set
...
...
modules/gui/skins/gtk2/gtk2_run.cpp
View file @
dfa3c5d0
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* gtk2_run.cpp:
* gtk2_run.cpp:
*****************************************************************************
*****************************************************************************
* Copyright (C) 2003 VideoLAN
* Copyright (C) 2003 VideoLAN
* $Id: gtk2_run.cpp,v 1.1
5 2003/04/21 00:54:26 ipkiss
Exp $
* $Id: gtk2_run.cpp,v 1.1
6 2003/04/21 01:47:42 asmax
Exp $
*
*
* Authors: Cyril Deguet <asmax@videolan.org>
* Authors: Cyril Deguet <asmax@videolan.org>
*
*
...
@@ -121,8 +121,32 @@ void GTK2Proc( GdkEvent *event, gpointer data )
...
@@ -121,8 +121,32 @@ void GTK2Proc( GdkEvent *event, gpointer data )
((
GdkEventAny
*
)
event
)
->
window
,
msg
,
0
,
(
long
)
event
);
((
GdkEventAny
*
)
event
)
->
window
,
msg
,
0
,
(
long
)
event
);
}
}
// Process keyboard shortcuts
if
(
msg
==
GDK_KEY_PRESS
)
{
int
KeyModifier
=
0
;
// If key is ALT
if
(
((
GdkEventKey
*
)
event
)
->
state
&
GDK_MOD1_MASK
)
{
KeyModifier
=
1
;
}
// If key is CTRL
else
if
(
((
GdkEventKey
*
)
event
)
->
state
&
GDK_CONTROL_MASK
)
{
KeyModifier
=
2
;
}
int
key
=
((
GdkEventKey
*
)
event
)
->
keyval
;
// Translate into lower case
if
(
key
>=
'a'
&&
key
<=
'z'
)
{
key
-=
(
'a'
-
'A'
);
}
if
(
KeyModifier
>
0
)
p_intf
->
p_sys
->
p_theme
->
EvtBank
->
TestShortcut
(
key
,
KeyModifier
);
}
// Send event
// Send event
if
(
IsVLCEvent
(
msg
)
)
else
if
(
IsVLCEvent
(
msg
)
)
{
{
if
(
!
proc
->
EventProc
(
evt
)
)
if
(
!
proc
->
EventProc
(
evt
)
)
{
{
...
...
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