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
5a05f95c
Commit
5a05f95c
authored
14 years ago
by
Birte Kristina Friesel
Browse files
Options
Downloads
Patches
Plain Diff
Ignore Shift keystate, shift/non-shift keysyms differ anyways.
parent
d9b4bcb1
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
data/examples/keys
+4
-4
4 additions, 4 deletions
data/examples/keys
man/feh.pre
+1
-2
1 addition, 2 deletions
man/feh.pre
src/keyevents.c
+9
-4
9 additions, 4 deletions
src/keyevents.c
with
14 additions
and
10 deletions
data/examples/keys
+
4
−
4
View file @
5a05f95c
...
...
@@ -21,10 +21,10 @@ remove l Delete
delete C-l C-Delete
# and image movement
scroll_up
S-
J C-Up
scroll_down
S-
K C-Down
scroll_left
S-
H C-Left
scroll_right
S-
L C-Right
scroll_up J C-Up
scroll_down K C-Down
scroll_left H C-Left
scroll_right L C-Right
# zooming
zoom_in C-Up f
...
...
This diff is collapsed.
Click to expand it.
man/feh.pre
+
1
−
2
View file @
5a05f95c
...
...
@@ -698,8 +698,7 @@ looks like
.Pq for example Qo C-Delete Qc for Ctrl+Delete .
.Pp
Available modifiers are
.Ar C No for Control ,
.Ar S No for Shift and
.Ar C No for Control and
.Ar 1 No to Ar 5 No for Mod1 to Mod5 .
.Pp
Specifying an
...
...
This diff is collapsed.
Click to expand it.
src/keyevents.c
+
9
−
4
View file @
5a05f95c
...
...
@@ -54,9 +54,6 @@ 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
;
...
...
@@ -296,8 +293,16 @@ void init_keyevents(void) {
static
short
feh_is_kp
(
fehkey
*
key
,
int
sym
,
int
state
)
{
int
i
;
/*
* Regarding the | 0x1: state 1 = shift, but we don't care about that.
* Shift produces different keysyms than non-shift anyways.
*/
for
(
i
=
0
;
i
<
3
;
i
++
)
{
if
((
key
->
keysyms
[
i
]
==
sym
)
&&
(
key
->
keystates
[
i
]
==
state
))
if
(
(
key
->
keysyms
[
i
]
==
sym
)
&&
((
key
->
keystates
[
i
]
|
0x1
)
==
(
state
|
0x1
)))
return
1
;
else
if
(
key
->
keysyms
[
i
]
==
0
)
return
0
;
...
...
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