blob: e8391779a46b94a7d06f2d86009efb1f70325b44 [file] [log] [blame]
Pierre Ossmanefd42612014-09-17 13:55:51 +02001Test protocol for keyboard handling
2===================================
3
4Platform specific tests/issues are marked with [].
5
Pierre Ossmanb6116dd2016-06-10 15:03:13 +02006These tests are primarily about what is sent over the protocol and some
7may be difficult or impossible to test using normal applications. In
8these cases you can turn on debug logging in either the client or the
9server by specifying "-Log *:stderr:100".
10
11We currently have a limitation in Xvnc where it can run out of symbols,
12resulting in nothing being sent to the applications. Just run setxkbmap
13with any layout to reset the symbol table.
14
Pierre Ossman54338082017-09-18 16:22:41 +020015Client (classic, non-raw, mode)
16-------------------------------
Pierre Ossmanefd42612014-09-17 13:55:51 +020017
18- Normal symbols:
19
20 - ASCII characters
21 - Latin 1 character
22 - Unicode BMP characters
Pierre Ossman93454d92016-06-10 15:08:52 +020023 - Unicode non-BMP characters (does any layout actually have these?)
Pierre Ossmanefd42612014-09-17 13:55:51 +020024
25- Dead keys:
26
Pierre Ossmanb6116dd2016-06-10 15:03:13 +020027 These are not available on a single layout, so you need to switch to
28 test everything. The useful layouts also differ per platform:
29
30 X11: US International for most, Greek for some specific diacretics
31 Win: US International, Czech, Greek Polytonic, Vietnamese
Pierre Ossman93454d92016-06-10 15:08:52 +020032 OS X: ABC Extended (FIXME: lots of broken keys),
33 Greek (FIXME: cannot be used with TigerVNC)
Pierre Ossmanb6116dd2016-06-10 15:03:13 +020034
Pierre Ossmanefd42612014-09-17 13:55:51 +020035 - Grave
36 - Acute
37 - Circumflex
38 - Tilde
Pierre Ossman93454d92016-06-10 15:08:52 +020039 - Macron (FIXME: broken on Win)
Pierre Ossmanefd42612014-09-17 13:55:51 +020040 - Breve
41 - Dot above
Pierre Ossman30e34012016-06-10 15:06:21 +020042 - Dot below
Pierre Ossmanefd42612014-09-17 13:55:51 +020043 - Diaeresis
44 - Ring above
45 - Double acute
46 - Caron
47 - Cedilla
48 - Ogonek
Pierre Ossman93454d92016-06-10 15:08:52 +020049 - Ypogegrammeni (iota below) (FIXME: broken on Win)
50 - Dialytika tonos [Win] (Diaresis on X11, and maybe OS X?)
51 - Comma above (FIXME: broken on Win)
52 - Reversed comma above (FIXME: broken on Win)
53 - Horn [X11?]
54 - Hook above [Win?]
55 - Hook below [X11?, Win?]
56 - Dakuten (Katakana voiced mark) (Only Input Methods layouts?)
57 - Handakuten (Katakana semi-voiced mark) (Only Input Methods layouts?)
Pierre Ossmanefd42612014-09-17 13:55:51 +020058 - FIXME: Many more that we currently probably don't support
59
60 - No composition on client
61
62- Modifiers:
63
Pierre Ossmanb6116dd2016-06-10 15:03:13 +020064 X11: You can usually toggle Hyper/Super and Compose/Scroll_Lock using
65 XKB options.
66
Pierre Ossman671d05d2017-09-18 16:22:09 +020067 - CapsLock, NumLock
Pierre Ossmanefd42612014-09-17 13:55:51 +020068 - Shift, Ctrl
Pierre Ossman69428fe2018-03-08 17:24:54 +010069 - Alt, AltGr, Super [Win, X11]
70 - Ctrl+AltGr [Win]
Pierre Ossmanf1013e42016-06-10 15:04:33 +020071 - Meta [X11]
Pierre Ossman19e07542018-03-08 17:16:14 +010072 - Left/right identification (FIXME: broken release for Shift on Win)
Pierre Ossman93454d92016-06-10 15:08:52 +020073 - CmdL => AltL, CmdR => SuperL, AltL => ModeSwitch, AltR => Level3Shift [OS X]
Peter Åstrand (astrand)f3ff0f12015-10-14 13:47:28 +020074 - Hyper sends Super [X11]
Pierre Ossmanefd42612014-09-17 13:55:51 +020075
76 - CapsLock, Shift and AltGr affect symbol lookup
Pierre Ossmanefd42612014-09-17 13:55:51 +020077 - Ctrl does not affect symbol lookup
Pierre Ossman51249782018-03-08 14:05:39 +010078 - Ctrl+Alt+<ANY> sends the same symbol as <ANY>
Pierre Ossmanefd42612014-09-17 13:55:51 +020079 - "Shift press, A press, Shift release, A release" should not send "a release"
80
81- Numpad:
82
Pierre Ossman2ddee232016-06-10 15:03:59 +020083 - NumLock affects symbol lookup [Win, X11]
Pierre Ossmanefd42612014-09-17 13:55:51 +020084 - Numpad specific symbols are sent
Pierre Ossmanefd42612014-09-17 13:55:51 +020085 - Decimal key should send Decimal for layouts with . as a symbol, and
86 Separator for layouts with , as a symbol
Pierre Ossman2ddee232016-06-10 15:03:59 +020087 - Shift inverts NumLock behaviour [X11]
88 - Shift turns NumLock off, but not on [Win] (FIXME: fake Shifts also sent)
Pierre Ossmanefd42612014-09-17 13:55:51 +020089
90- Multimedia keys:
91
Pierre Ossman93454d92016-06-10 15:08:52 +020092 OS X: FIXME: all broken
93
Pierre Ossmanefd42612014-09-17 13:55:51 +020094 - Back, Forward, Refresh, Stop
Pierre Ossman93454d92016-06-10 15:08:52 +020095 - HomePage, Search, Favourites (FIXME: broken on Win)
Pierre Ossmanefd42612014-09-17 13:55:51 +020096 - Mail, Calculator
97 - Volume up, down, mute
98 - Media next, previous, stop, play
Pierre Ossman93454d92016-06-10 15:08:52 +020099 - Sleep (FIXME: broken on Win)
Pierre Ossmanefd42612014-09-17 13:55:51 +0200100 - FIXME: probably more keys exist
101
102- Non-character keys:
103
Pierre Ossman93454d92016-06-10 15:08:52 +0200104 - F1-F24 (FIXME: F14-F15 broken on OS X)
Pierre Ossmanefb48a52016-06-10 15:08:24 +0200105 - Tab, Space, Backspace, Return, Esc
Pierre Ossman93454d92016-06-10 15:08:52 +0200106 - LeftTab sends Tab [X11?]
Pierre Ossmanefb48a52016-06-10 15:08:24 +0200107 - PrntScrn, ScrollLock, Pause [X11, Win]
108 - Help [X11?, OS X]
109 - Insert [X11, Win]
110 - Delete, Home, End, PageUp, PageDown
Pierre Ossmanefd42612014-09-17 13:55:51 +0200111 - Arrow keys
112 - Menu
Pierre Ossmana7d3dc72014-09-30 17:03:28 +0200113 - Alt+PrntScrn sends Sys_Req [Win]
Pierre Ossmanefd42612014-09-17 13:55:51 +0200114
115- French layout (AZERTY and inverted shift behaviour for many keys)
116
Pierre Ossman54338082017-09-18 16:22:41 +0200117- Local layout changes are respected
118
119Client (raw mode)
120-----------------
121
122- All physical keys (modifiers or type of symbol shouldn't matter)
123
124 - Normal keys
125 - Dead keys
126 - Numpad
127 - Multimedia keys
128 - Non-character keys
129
Pierre Ossman54338082017-09-18 16:22:41 +0200130Client (both modes)
131-------------------
132
Pierre Ossmanefd42612014-09-17 13:55:51 +0200133- Key repeat should not send repeated release events
134
135- Keys are released on loss of focus
136
Pierre Ossmanefd42612014-09-17 13:55:51 +0200137- Local input methods are disabled/enabled with focus
138
Pierre Ossman93454d92016-06-10 15:08:52 +0200139- System keys should be grabbed in full screen (FIXME: lots missing on Win)
Pierre Ossmanefd42612014-09-17 13:55:51 +0200140
141 The exact keys depends on the system and configuration, but it
142 is usually variants of these:
143
144 - Alt+Tab
145 - Super (and Super+other)
146 - Multimedia keys
147 - Ctrl+Alt+Delete
148 - Ctrl+Esc
149 - F8-F12
150
Pierre Ossman671d05d2017-09-18 16:22:09 +0200151- Lock key states:
152
153 - Adjusted on server when connecting
154 - Adjusted on server when regaining focus
155 - Server changes are honored when focused
156 - Server changes are not honored when not focused
157
158 - CapsLock
159 - NumLock (hidden state on macOS)
160 - ScollLock [X11, Win]
161
Pierre Ossmanefd42612014-09-17 13:55:51 +0200162- Virtual keyboard (as much of the above as is possible)