blob: 49d935a0f68d0de1a26f271acd9ca812c367c506 [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 Ossmanefd42612014-09-17 13:55:51 +020015Client
16------
17
18- Normal symbols:
19
20 - ASCII characters
21 - Latin 1 character
22 - Unicode BMP characters
23 - Unicode non-BMP characters
24
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
32 OS X: ABC Extended, Greek
33
Pierre Ossmanefd42612014-09-17 13:55:51 +020034 - Grave
35 - Acute
36 - Circumflex
37 - Tilde
38 - Macron
39 - Breve
40 - Dot above
41 - Diaeresis
42 - Ring above
43 - Double acute
44 - Caron
45 - Cedilla
46 - Ogonek
47 - Ypogegrammeni
48 - Katakana voiced mark
49 - Katakana semi-voiced mark
50 - Dialytika tonos
51 - FIXME: Many more that we currently probably don't support
52
53 - No composition on client
54
55- Modifiers:
56
Pierre Ossmanb6116dd2016-06-10 15:03:13 +020057 X11: You can usually toggle Hyper/Super and Compose/Scroll_Lock using
58 XKB options.
59
Pierre Ossmanefd42612014-09-17 13:55:51 +020060 - CapsLock, NumLock (sent but ignored by server)
61 - Shift, Ctrl
62 - Alt, AltGr, Super [Win, X11] (FIXME: AltGr broken on Win)
Pierre Ossmanf1013e42016-06-10 15:04:33 +020063 - Meta [X11]
Pierre Ossmanefd42612014-09-17 13:55:51 +020064 - Left/right identification (FIXME: broken for Shift on Win)
65 - CmdL => AltL, CmdR => SuperL, AltL => ModeSwitch, AltR => Level3Shift [Mac]
Peter Åstrand (astrand)f3ff0f12015-10-14 13:47:28 +020066 - Hyper sends Super [X11]
Pierre Ossmanefd42612014-09-17 13:55:51 +020067
68 - CapsLock, Shift and AltGr affect symbol lookup
Pierre Ossmanefd42612014-09-17 13:55:51 +020069 - Ctrl does not affect symbol lookup
Pierre Ossmanefd42612014-09-17 13:55:51 +020070 - CtrlL+AltR fake release [Win]
71 - Ctrl+Alt+any (note behaviour above though)
72 - Ctrl+AltGr+any (FIXME: broken on Win)
73 - "Shift press, A press, Shift release, A release" should not send "a release"
74
75- Numpad:
76
Pierre Ossman2ddee232016-06-10 15:03:59 +020077 - NumLock affects symbol lookup [Win, X11]
Pierre Ossmanefd42612014-09-17 13:55:51 +020078 - Numpad specific symbols are sent
Pierre Ossmanefd42612014-09-17 13:55:51 +020079 - Decimal key should send Decimal for layouts with . as a symbol, and
80 Separator for layouts with , as a symbol
Pierre Ossman2ddee232016-06-10 15:03:59 +020081 - Shift inverts NumLock behaviour [X11]
82 - Shift turns NumLock off, but not on [Win] (FIXME: fake Shifts also sent)
Pierre Ossmanefd42612014-09-17 13:55:51 +020083
84- Multimedia keys:
85
86 - Back, Forward, Refresh, Stop
87 - HomePage, Search, Favourites
88 - Mail, Calculator
89 - Volume up, down, mute
90 - Media next, previous, stop, play
91 - Sleep
92 - FIXME: probably more keys exist
93
94- Non-character keys:
95
96 - F1-F24
97 - Tab, Space, Backspace, Return
98 - LeftTab sends Tab
99 - Esc, PrntScrn, ScrollLock, Pause
100 - Insert, Delete, Home, End, PageUp, PageDown
101 - Arrow keys
102 - Menu
Pierre Ossmana7d3dc72014-09-30 17:03:28 +0200103 - Alt+PrntScrn sends Sys_Req [Win]
Pierre Ossmanefd42612014-09-17 13:55:51 +0200104
105- French layout (AZERTY and inverted shift behaviour for many keys)
106
107- Key repeat should not send repeated release events
108
109- Keys are released on loss of focus
110
111- Local layout changes are respected
112
113- Local input methods are disabled/enabled with focus
114
115- System keys should be grabbed in full screen
116
117 The exact keys depends on the system and configuration, but it
118 is usually variants of these:
119
120 - Alt+Tab
121 - Super (and Super+other)
122 - Multimedia keys
123 - Ctrl+Alt+Delete
124 - Ctrl+Esc
125 - F8-F12
126
127- Virtual keyboard (as much of the above as is possible)