Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
feh
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
derf
feh
Commits
7f2e2a30
"README.md" did not exist on "b4c95797ed5f88deacbda18d9364fdbeaf2bc100"
Commit
7f2e2a30
authored
13 years ago
by
Birte Kristina Friesel
Browse files
Options
Downloads
Patches
Plain Diff
keyevents.c: Support Shift modifier (see github issue #30, patch by Yu-Jie Lin)
parent
0047a2d0
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/keyevents.c
+9
-1
9 additions, 1 deletion
src/keyevents.c
with
9 additions
and
1 deletion
src/keyevents.c
+
9
−
1
View file @
7f2e2a30
...
...
@@ -55,6 +55,9 @@ static void feh_set_parse_kb_partial(fehkey *key, int index, char *ks) {
case
'C'
:
mod
|=
ControlMask
;
break
;
case
'S'
:
mod
|=
ShiftMask
;
break
;
case
'1'
:
mod
|=
Mod1Mask
;
break
;
...
...
@@ -69,6 +72,8 @@ static void feh_set_parse_kb_partial(fehkey *key, int index, char *ks) {
}
key
->
keysyms
[
index
]
=
XStringToKeysym
(
cur
);
if
(
isascii
(
key
->
keysyms
[
index
]))
mod
&=
~
ShiftMask
;
key
->
keystates
[
index
]
=
mod
;
if
(
key
->
keysyms
[
index
]
==
NoSymbol
)
...
...
@@ -358,7 +363,10 @@ void feh_event_handle_keypress(XEvent * ev)
kev
=
(
XKeyEvent
*
)
ev
;
len
=
XLookupString
(
&
ev
->
xkey
,
(
char
*
)
kbuf
,
sizeof
(
kbuf
),
&
keysym
,
NULL
);
state
=
kev
->
state
&
(
ControlMask
|
Mod1Mask
|
Mod4Mask
);
state
=
kev
->
state
&
(
ControlMask
|
ShiftMask
|
Mod1Mask
|
Mod4Mask
);
if
(
isascii
(
keysym
))
state
&=
~
ShiftMask
;
/* menus are showing, so this is a menu control keypress */
if
(
ev
->
xbutton
.
window
==
menu_cover
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment