Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nx-libs
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dimbor
nx-libs
Commits
8f7b0b75
Commit
8f7b0b75
authored
Mar 11, 2017
by
Ulrich Sibiller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Keystroke.c: arrange switch_all_screens and fullscreen close together
Both use the same keystroke 'f' (with different modifiers) for a very similar function.
parent
8f0d885c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
18 deletions
+18
-18
keystrokes.cfg
etc/keystrokes.cfg
+1
-1
Keystroke.c
nx-X11/programs/Xserver/hw/nxagent/Keystroke.c
+3
-3
Keystroke.h
nx-X11/programs/Xserver/hw/nxagent/Keystroke.h
+14
-14
No files found.
etc/keystrokes.cfg
View file @
8f7b0b75
...
...
@@ -2,6 +2,7 @@
<keystrokes>
<keystroke
action=
"close_session"
Control=
"1"
AltMeta=
"1"
key=
"t"
/>
<keystroke
action=
"switch_all_screens"
Control=
"1"
AltMeta=
"1"
key=
"f"
/>
<keystroke
action=
"fullscreen"
Control=
"1"
Shift=
"1"
AltMeta=
"1"
key=
"f"
/>
<keystroke
action=
"minimize"
Control=
"1"
AltMeta=
"1"
key=
"m"
/>
<keystroke
action=
"resize"
Control=
"1"
AltMeta=
"1"
key=
"r"
/>
<keystroke
action=
"defer"
Control=
"1"
AltMeta=
"1"
key=
"e"
/>
...
...
@@ -11,7 +12,6 @@
<keystroke
action=
"regions_on_screen"
Control=
"1"
AltMeta=
"1"
key=
"a"
/>
<keystroke
action=
"test_input"
Control=
"1"
AltMeta=
"1"
key=
"x"
/>
<keystroke
action=
"deactivate_input_devices_grab"
Control=
"1"
AltMeta=
"1"
key=
"y"
/>
<keystroke
action=
"fullscreen"
Control=
"1"
Shift=
"1"
AltMeta=
"1"
key=
"f"
/>
<keystroke
action=
"viewport_move_left"
Control=
"1"
Shift=
"1"
AltMeta=
"1"
key=
"Left"
/>
<keystroke
action=
"viewport_move_up"
Control=
"1"
AltMeta=
"1"
key=
"Up"
/>
<keystroke
action=
"viewport_move_right"
Control=
"1"
AltMeta=
"1"
key=
"Right"
/>
...
...
nx-X11/programs/Xserver/hw/nxagent/Keystroke.c
View file @
8f7b0b75
...
...
@@ -70,6 +70,7 @@ char * nxagentSpecialKeystrokeNames[] = {
"end_marker"
,
"close_session"
,
"switch_all_screens"
,
"fullscreen"
,
"minimize"
,
"left"
,
"up"
,
...
...
@@ -85,7 +86,6 @@ char * nxagentSpecialKeystrokeNames[] = {
"test_input"
,
"deactivate_input_devices_grab"
,
"fullscreen"
,
"viewport_move_left"
,
"viewport_move_up"
,
"viewport_move_right"
,
...
...
@@ -101,6 +101,8 @@ struct nxagentSpecialKeystrokeMap default_map[] = {
{
KEYSTROKE_CLOSE_SESSION
,
ControlMask
,
True
,
XK_T
},
{
KEYSTROKE_SWITCH_ALL_SCREENS
,
ControlMask
,
True
,
XK_f
},
{
KEYSTROKE_SWITCH_ALL_SCREENS
,
ControlMask
,
True
,
XK_F
},
{
KEYSTROKE_FULLSCREEN
,
ControlMask
|
ShiftMask
,
True
,
XK_f
},
{
KEYSTROKE_FULLSCREEN
,
ControlMask
|
ShiftMask
,
True
,
XK_F
},
{
KEYSTROKE_MINIMIZE
,
ControlMask
,
True
,
XK_m
},
{
KEYSTROKE_MINIMIZE
,
ControlMask
,
True
,
XK_M
},
{
KEYSTROKE_LEFT
,
ControlMask
,
True
,
XK_Left
},
...
...
@@ -125,8 +127,6 @@ struct nxagentSpecialKeystrokeMap default_map[] = {
{
KEYSTROKE_TEST_INPUT
,
ControlMask
,
True
,
XK_X
},
{
KEYSTROKE_DEACTIVATE_INPUT_DEVICES_GRAB
,
ControlMask
,
True
,
XK_y
},
{
KEYSTROKE_DEACTIVATE_INPUT_DEVICES_GRAB
,
ControlMask
,
True
,
XK_Y
},
{
KEYSTROKE_FULLSCREEN
,
ControlMask
|
ShiftMask
,
True
,
XK_f
},
{
KEYSTROKE_FULLSCREEN
,
ControlMask
|
ShiftMask
,
True
,
XK_F
},
{
KEYSTROKE_VIEWPORT_MOVE_LEFT
,
ControlMask
|
ShiftMask
,
True
,
XK_Left
},
{
KEYSTROKE_VIEWPORT_MOVE_LEFT
,
ControlMask
|
ShiftMask
,
True
,
XK_KP_Left
},
{
KEYSTROKE_VIEWPORT_MOVE_UP
,
ControlMask
|
ShiftMask
,
True
,
XK_Up
},
...
...
nx-X11/programs/Xserver/hw/nxagent/Keystroke.h
View file @
8f7b0b75
...
...
@@ -42,23 +42,23 @@ enum nxagentSpecialKeystroke {
KEYSTROKE_END_MARKER
=
0
,
KEYSTROKE_CLOSE_SESSION
=
1
,
KEYSTROKE_SWITCH_ALL_SCREENS
=
2
,
KEYSTROKE_MINIMIZE
=
3
,
KEYSTROKE_LEFT
=
4
,
KEYSTROKE_UP
=
5
,
KEYSTROKE_RIGHT
=
6
,
KEYSTROKE_DOWN
=
7
,
KEYSTROKE_RESIZE
=
8
,
KEYSTROKE_DEFER
=
9
,
KEYSTROKE_IGNORE
=
10
,
KEYSTROKE_FORCE_SYNCHRONIZATION
=
11
,
KEYSTROKE_FULLSCREEN
=
3
,
KEYSTROKE_MINIMIZE
=
4
,
KEYSTROKE_LEFT
=
5
,
KEYSTROKE_UP
=
6
,
KEYSTROKE_RIGHT
=
7
,
KEYSTROKE_DOWN
=
8
,
KEYSTROKE_RESIZE
=
9
,
KEYSTROKE_DEFER
=
10
,
KEYSTROKE_IGNORE
=
11
,
KEYSTROKE_FORCE_SYNCHRONIZATION
=
12
,
/* stuff used for debugging, probably not useful for most people */
KEYSTROKE_DEBUG_TREE
=
1
2
,
KEYSTROKE_REGIONS_ON_SCREEN
=
1
3
,
KEYSTROKE_TEST_INPUT
=
1
4
,
KEYSTROKE_DEACTIVATE_INPUT_DEVICES_GRAB
=
1
5
,
KEYSTROKE_DEBUG_TREE
=
1
3
,
KEYSTROKE_REGIONS_ON_SCREEN
=
1
4
,
KEYSTROKE_TEST_INPUT
=
1
5
,
KEYSTROKE_DEACTIVATE_INPUT_DEVICES_GRAB
=
1
6
,
KEYSTROKE_FULLSCREEN
=
16
,
KEYSTROKE_VIEWPORT_MOVE_LEFT
=
17
,
KEYSTROKE_VIEWPORT_MOVE_UP
=
18
,
KEYSTROKE_VIEWPORT_MOVE_RIGHT
=
19
,
...
...
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