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
d373cb8d
Commit
d373cb8d
authored
Nov 06, 2013
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
XCB/window: map Super and AltGr keys to Meta and Alt modifiers resp.
parent
2f3e3eb8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
modules/video_output/xcb/keys.c
modules/video_output/xcb/keys.c
+10
-4
No files found.
modules/video_output/xcb/keys.c
View file @
d373cb8d
...
@@ -153,14 +153,20 @@ int XCB_keyHandler_Process (key_handler_t *ctx, xcb_generic_event_t *ev)
...
@@ -153,14 +153,20 @@ int XCB_keyHandler_Process (key_handler_t *ctx, xcb_generic_event_t *ev)
vk
,
sym
);
vk
,
sym
);
if
(
vk
==
KEY_UNSET
)
if
(
vk
==
KEY_UNSET
)
break
;
break
;
if
(
e
->
state
&
XCB_MOD_MASK_SHIFT
)
if
(
e
->
state
&
XCB_MOD_MASK_SHIFT
)
/* Shift */
vk
|=
KEY_MODIFIER_SHIFT
;
vk
|=
KEY_MODIFIER_SHIFT
;
if
(
e
->
state
&
XCB_MOD_MASK_CONTROL
)
/* XCB_MOD_MASK_LOCK */
/* Caps Lock */
if
(
e
->
state
&
XCB_MOD_MASK_CONTROL
)
/* Control */
vk
|=
KEY_MODIFIER_CTRL
;
vk
|=
KEY_MODIFIER_CTRL
;
if
(
e
->
state
&
XCB_MOD_MASK_1
)
if
(
e
->
state
&
XCB_MOD_MASK_1
)
/* Alternate */
vk
|=
KEY_MODIFIER_ALT
;
vk
|=
KEY_MODIFIER_ALT
;
if
(
e
->
state
&
XCB_MOD_MASK_4
)
/* XCB_MOD_MASK_2 */
/* Numeric Pad Lock */
if
(
e
->
state
&
XCB_MOD_MASK_3
)
/* Super */
vk
|=
KEY_MODIFIER_META
;
vk
|=
KEY_MODIFIER_META
;
if
(
e
->
state
&
XCB_MOD_MASK_4
)
/* Meta */
vk
|=
KEY_MODIFIER_META
;
if
(
e
->
state
&
XCB_MOD_MASK_5
)
/* Alternate Graphic */
vk
|=
KEY_MODIFIER_ALT
;
var_SetInteger
(
ctx
->
obj
->
p_libvlc
,
"key-pressed"
,
vk
);
var_SetInteger
(
ctx
->
obj
->
p_libvlc
,
"key-pressed"
,
vk
);
break
;
break
;
}
}
...
...
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