blob: c2b06d1341deb65ca8d208e5b256840f1df2ddc1 [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)
63 - Left/right identification (FIXME: broken for Shift on Win)
64 - CmdL => AltL, CmdR => SuperL, AltL => ModeSwitch, AltR => Level3Shift [Mac]
Peter Åstrand (astrand)f3ff0f12015-10-14 13:47:28 +020065 - Hyper sends Super [X11]
Pierre Ossmanefd42612014-09-17 13:55:51 +020066
67 - CapsLock, Shift and AltGr affect symbol lookup
Pierre Ossmanefd42612014-09-17 13:55:51 +020068 - Ctrl does not affect symbol lookup
Pierre Ossmanefd42612014-09-17 13:55:51 +020069 - CtrlL+AltR fake release [Win]
70 - Ctrl+Alt+any (note behaviour above though)
71 - Ctrl+AltGr+any (FIXME: broken on Win)
72 - "Shift press, A press, Shift release, A release" should not send "a release"
73
74- Numpad:
75
Pierre Ossman2ddee232016-06-10 15:03:59 +020076 - NumLock affects symbol lookup [Win, X11]
Pierre Ossmanefd42612014-09-17 13:55:51 +020077 - Numpad specific symbols are sent
Pierre Ossmanefd42612014-09-17 13:55:51 +020078 - Decimal key should send Decimal for layouts with . as a symbol, and
79 Separator for layouts with , as a symbol
Pierre Ossman2ddee232016-06-10 15:03:59 +020080 - Shift inverts NumLock behaviour [X11]
81 - Shift turns NumLock off, but not on [Win] (FIXME: fake Shifts also sent)
Pierre Ossmanefd42612014-09-17 13:55:51 +020082
83- Multimedia keys:
84
85 - Back, Forward, Refresh, Stop
86 - HomePage, Search, Favourites
87 - Mail, Calculator
88 - Volume up, down, mute
89 - Media next, previous, stop, play
90 - Sleep
91 - FIXME: probably more keys exist
92
93- Non-character keys:
94
95 - F1-F24
96 - Tab, Space, Backspace, Return
97 - LeftTab sends Tab
98 - Esc, PrntScrn, ScrollLock, Pause
99 - Insert, Delete, Home, End, PageUp, PageDown
100 - Arrow keys
101 - Menu
Pierre Ossmana7d3dc72014-09-30 17:03:28 +0200102 - Alt+PrntScrn sends Sys_Req [Win]
Pierre Ossmanefd42612014-09-17 13:55:51 +0200103
104- French layout (AZERTY and inverted shift behaviour for many keys)
105
106- Key repeat should not send repeated release events
107
108- Keys are released on loss of focus
109
110- Local layout changes are respected
111
112- Local input methods are disabled/enabled with focus
113
114- System keys should be grabbed in full screen
115
116 The exact keys depends on the system and configuration, but it
117 is usually variants of these:
118
119 - Alt+Tab
120 - Super (and Super+other)
121 - Multimedia keys
122 - Ctrl+Alt+Delete
123 - Ctrl+Esc
124 - F8-F12
125
126- Virtual keyboard (as much of the above as is possible)