xpra icon
Bug tracker and wiki

Ticket #2915: keyboard_debug_log2

File keyboard_debug_log2, 16.6 KB (added by Thomas Esposito, 3 months ago)

annotated debug log for described keyboard event sequence

Line 
1// press '8' -> terminal prints '8'
2[36m2020-10-23 11:48:28,858 will try levels: [0, 4, 1, 5, 2, 6, 3, 7][0m
3[36m2020-10-23 11:48:28,859 do_get_keycode(56, '8', True, [], 0)=17 (level=0, shift=False, mode=0)[0m
4[36m2020-10-23 11:48:28,859 process_key_action(['key-action', 1, '8', True, (), 56, '8', 56, 0]) server keycode=17, group=0[0m
5[36m2020-10-23 11:48:28,859 set_keyboard_layout_group(0) config=KeyboardConfig(us /  / None), current keyboard group=0[0m
6[36m2020-10-23 11:48:28,859 filtered_modifiers_set([])=set([])[0m
7[36m2020-10-23 11:48:28,859 filtered_modifiers_set([])=set([])[0m
8[36m2020-10-23 11:48:28,859 is_modifier(17) not found[0m
9[36m2020-10-23 11:48:28,859 handle_key((1, True, '8', 56, 17, [], False, True))[0m
10[36m2020-10-23 11:48:28,860 handle keycode pressing    17: key '8'[0m
11[36m2020-10-23 11:48:28,860 fake_key(17, True)[0m
12[36m2020-10-23 11:48:28,860 scheduling key repeat timer with delay 500 for 8 / 17[0m
13
14// release '8'
15[36m2020-10-23 11:48:29,169 process_key_action(['key-action', 1, '8', False, (), 56, '8', 56, 0]) server keycode=17, group=0[0m
16[36m2020-10-23 11:48:29,169 set_keyboard_layout_group(0) config=KeyboardConfig(us /  / None), current keyboard group=0[0m
17[36m2020-10-23 11:48:29,169 filtered_modifiers_set([])=set([])[0m
18[36m2020-10-23 11:48:29,169 filtered_modifiers_set([])=set([])[0m
19[36m2020-10-23 11:48:29,170 is_modifier(17) not found[0m
20[36m2020-10-23 11:48:29,170 handle_key((1, False, '8', 56, 17, [], False, True))[0m
21[36m2020-10-23 11:48:29,170 handle keycode unpressing  17: key '8'[0m
22[36m2020-10-23 11:48:29,170 fake_key(17, False)[0m
23
24--------------------------------
25
26// press '9' -> terminal prints '9'
27[36m2020-10-23 11:48:34,097 will try levels: [0, 4, 1, 5, 2, 6, 3, 7][0m
28[36m2020-10-23 11:48:34,097 do_get_keycode(57, '9', True, [], 0)=18 (level=0, shift=False, mode=0)[0m
29[36m2020-10-23 11:48:34,098 process_key_action(['key-action', 1, '9', True, (), 57, '9', 57, 0]) server keycode=18, group=0[0m
30[36m2020-10-23 11:48:34,098 set_keyboard_layout_group(0) config=KeyboardConfig(us /  / None), current keyboard group=0[0m
31[36m2020-10-23 11:48:34,098 filtered_modifiers_set([])=set([])[0m
32[36m2020-10-23 11:48:34,098 filtered_modifiers_set([])=set([])[0m
33[36m2020-10-23 11:48:34,098 is_modifier(18) not found[0m
34[36m2020-10-23 11:48:34,098 handle_key((1, True, '9', 57, 18, [], False, True))[0m
35[36m2020-10-23 11:48:34,099 handle keycode pressing    18: key '9'[0m
36[36m2020-10-23 11:48:34,099 fake_key(18, True)[0m
37[36m2020-10-23 11:48:34,099 scheduling key repeat timer with delay 500 for 9 / 18[0m
38
39[36m2020-10-23 11:48:34,435 process_key_action(['key-action', 1, '9', False, (), 57, '9', 57, 0]) server keycode=18, group=0[0m
40[36m2020-10-23 11:48:34,435 set_keyboard_layout_group(0) config=KeyboardConfig(us /  / None), current keyboard group=0[0m
41[36m2020-10-23 11:48:34,435 filtered_modifiers_set([])=set([])[0m
42[36m2020-10-23 11:48:34,435 filtered_modifiers_set([])=set([])[0m
43[36m2020-10-23 11:48:34,435 is_modifier(18) not found[0m
44[36m2020-10-23 11:48:34,436 handle_key((1, False, '9', 57, 18, [], False, True))[0m
45[36m2020-10-23 11:48:34,436 handle keycode unpressing  18: key '9'[0m
46[36m2020-10-23 11:48:34,436 fake_key(18, False)[0m
47
48--------------------------------
49// toggle Caps_Lock -> nothing printed in debug log
50--------------------------------
51
52// press '8' -> terminal prints '*', but should be '8' because Caps_Lock should only affect letters
53[36m2020-10-23 11:48:44,466 will try levels: [1, 5, 0, 4, 3, 7, 2, 6][0m
54[36m2020-10-23 11:48:44,466 do_get_keycode(56, '8', True, ['lock'], 0)=17 (level=0, shift=True, mode=0)[0m
55[36m2020-10-23 11:48:44,466 adding 'shift' to modifiers[0m
56[36m2020-10-23 11:48:44,466 process_key_action(['key-action', 1, '8', True, ('lock',), 56, '8', 56, 0]) server keycode=17, group=0[0m
57[36m2020-10-23 11:48:44,466 set_keyboard_layout_group(0) config=KeyboardConfig(us /  / None), current keyboard group=0[0m
58[36m2020-10-23 11:48:44,467 filtered_modifiers_set([])=set([])[0m
59[36m2020-10-23 11:48:44,467 filtered_modifiers_set(['lock', 'shift'])=set(['lock', 'shift'])[0m
60[36m2020-10-23 11:48:44,467 make_keymask_match(['lock', 'shift']) current mask: set([]), wanted: set(['lock', 'shift']), ignoring=17/['8'], keys_pressed={}[0m
61[36m2020-10-23 11:48:44,467 change_mask(set([]), False, remove) failed=[][0m
62[36m2020-10-23 11:48:44,467 keynames(lock)=set(['Caps_Lock']), keycodes=[66], nuisance=True, nuisance keys=set(['lock', 'mod2'])[0m
63[36m2020-10-23 11:48:44,468 change_mask(add) ['lock', 'shift'] modifier 'lock' using keycode 66[0m
64[36m2020-10-23 11:48:44,468 keynames(shift)=set(['Shift_L', 'Shift_R']), keycodes=[50, 62], nuisance=False, nuisance keys=set(['lock', 'mod2'])[0m
65[36m2020-10-23 11:48:44,469 change_mask(add) ['lock', 'shift'] modifier 'shift' using keycode 50[0m
66[36m2020-10-23 11:48:44,469 change_mask(set(['lock', 'shift']), True, add) failed=[][0m
67[36m2020-10-23 11:48:44,469 is_modifier(17) not found[0m
68[36m2020-10-23 11:48:44,470 handle_key((1, True, '8', 56, 17, ['lock', 'shift'], False, True))[0m
69[36m2020-10-23 11:48:44,470 handle keycode pressing    17: key '8'[0m
70[36m2020-10-23 11:48:44,470 fake_key(17, True)[0m
71[36m2020-10-23 11:48:44,470 scheduling key repeat timer with delay 500 for 8 / 17[0m
72
73// release '8'
74
75[36m2020-10-23 11:48:44,793 process_key_action(['key-action', 1, '8', False, ('lock',), 56, '8', 56, 0]) server keycode=17, group=0[0m
76[36m2020-10-23 11:48:44,793 set_keyboard_layout_group(0) config=KeyboardConfig(us /  / None), current keyboard group=0[0m
77[36m2020-10-23 11:48:44,794 filtered_modifiers_set(['lock', 'shift'])=set(['lock', 'shift'])[0m
78[36m2020-10-23 11:48:44,794 filtered_modifiers_set(['lock'])=set(['lock'])[0m
79[36m2020-10-23 11:48:44,794 make_keymask_match(['lock']) current mask: set(['lock', 'shift']), wanted: set(['lock']), ignoring=17/['8'], keys_pressed={17: '8'}[0m
80[36m2020-10-23 11:48:44,794 keynames(shift)=set(['Shift_L', 'Shift_R']), keycodes=[50, 62], nuisance=False, nuisance keys=set(['lock', 'mod2'])[0m
81[36m2020-10-23 11:48:44,795 change_mask(remove) ['lock'] modifier 'shift' using keycode 50[0m
82[36m2020-10-23 11:48:44,795 change_mask(set(['shift']), False, remove) failed=[][0m
83[36m2020-10-23 11:48:44,795 change_mask(set([]), True, add) failed=[][0m
84[36m2020-10-23 11:48:44,795 is_modifier(17) not found[0m
85[36m2020-10-23 11:48:44,795 handle_key((1, False, '8', 56, 17, ['lock'], False, True))[0m
86[36m2020-10-23 11:48:44,795 handle keycode unpressing  17: key '8'[0m
87[36m2020-10-23 11:48:44,795 fake_key(17, False)[0m
88
89--------------------------------
90
91// press '9' -> terminal prints '(', but should be '9' because Caps_Lock should only affect letters
92[36m2020-10-23 11:48:49,578 will try levels: [1, 5, 0, 4, 3, 7, 2, 6][0m
93[36m2020-10-23 11:48:49,579 do_get_keycode(57, '9', True, ['lock'], 0)=18 (level=0, shift=True, mode=0)[0m
94[36m2020-10-23 11:48:49,579 adding 'shift' to modifiers[0m
95[36m2020-10-23 11:48:49,579 process_key_action(['key-action', 1, '9', True, ('lock',), 57, '9', 57, 0]) server keycode=18, group=0[0m
96[36m2020-10-23 11:48:49,579 set_keyboard_layout_group(0) config=KeyboardConfig(us /  / None), current keyboard group=0[0m
97[36m2020-10-23 11:48:49,579 filtered_modifiers_set(['lock'])=set(['lock'])[0m
98[36m2020-10-23 11:48:49,579 filtered_modifiers_set(['lock', 'shift'])=set(['lock', 'shift'])[0m
99[36m2020-10-23 11:48:49,579 make_keymask_match(['lock', 'shift']) current mask: set(['lock']), wanted: set(['lock', 'shift']), ignoring=18/['9'], keys_pressed={}[0m
100[36m2020-10-23 11:48:49,580 change_mask(set([]), False, remove) failed=[][0m
101[36m2020-10-23 11:48:49,580 keynames(shift)=set(['Shift_L', 'Shift_R']), keycodes=[50, 62], nuisance=False, nuisance keys=set(['lock', 'mod2'])[0m
102[36m2020-10-23 11:48:49,580 change_mask(add) ['lock', 'shift'] modifier 'shift' using keycode 50[0m
103[36m2020-10-23 11:48:49,580 change_mask(set(['shift']), True, add) failed=[][0m
104[36m2020-10-23 11:48:49,580 is_modifier(18) not found[0m
105[36m2020-10-23 11:48:49,581 handle_key((1, True, '9', 57, 18, ['lock', 'shift'], False, True))[0m
106[36m2020-10-23 11:48:49,581 handle keycode pressing    18: key '9'[0m
107[36m2020-10-23 11:48:49,581 fake_key(18, True)[0m
108[36m2020-10-23 11:48:49,581 scheduling key repeat timer with delay 500 for 9 / 18[0m
109
110// release '9'
111[36m2020-10-23 11:48:49,914 process_key_action(['key-action', 1, '9', False, ('lock',), 57, '9', 57, 0]) server keycode=18, group=0[0m
112[36m2020-10-23 11:48:49,914 set_keyboard_layout_group(0) config=KeyboardConfig(us /  / None), current keyboard group=0[0m
113[36m2020-10-23 11:48:49,914 filtered_modifiers_set(['lock', 'shift'])=set(['lock', 'shift'])[0m
114[36m2020-10-23 11:48:49,915 filtered_modifiers_set(['lock'])=set(['lock'])[0m
115[36m2020-10-23 11:48:49,915 make_keymask_match(['lock']) current mask: set(['lock', 'shift']), wanted: set(['lock']), ignoring=18/['9'], keys_pressed={18: '9'}[0m
116[36m2020-10-23 11:48:49,915 keynames(shift)=set(['Shift_L', 'Shift_R']), keycodes=[50, 62], nuisance=False, nuisance keys=set(['lock', 'mod2'])[0m
117[36m2020-10-23 11:48:49,916 change_mask(remove) ['lock'] modifier 'shift' using keycode 50[0m
118[36m2020-10-23 11:48:49,916 change_mask(set(['shift']), False, remove) failed=[][0m
119[36m2020-10-23 11:48:49,916 change_mask(set([]), True, add) failed=[][0m
120[36m2020-10-23 11:48:49,916 is_modifier(18) not found[0m
121[36m2020-10-23 11:48:49,917 handle_key((1, False, '9', 57, 18, ['lock'], False, True))[0m
122[36m2020-10-23 11:48:49,917 handle keycode unpressing  18: key '9'[0m
123[36m2020-10-23 11:48:49,917 fake_key(18, False)[0m
124
125--------------------------------
126
127// press 'Shift_L'
128[36m2020-10-23 11:48:54,554 will try levels: [0, 4, 1, 5, 2, 6, 3, 7][0m
129[36m2020-10-23 11:48:54,554 do_get_keycode(16, 'Shift_L', True, ['lock', 'shift'], 0)=50 (level=0, shift=False, mode=0)[0m
130[36m2020-10-23 11:48:54,554 process_key_action(['key-action', 1, 'Shift_L', True, ('lock', 'shift'), 65505, '', 16, 0]) server keycode=50, group=0[0m
131[36m2020-10-23 11:48:54,554 set_keyboard_layout_group(0) config=KeyboardConfig(us /  / None), current keyboard group=0[0m
132[36m2020-10-23 11:48:54,554 filtered_modifiers_set(['lock'])=set(['lock'])[0m
133[36m2020-10-23 11:48:54,555 modifier 'shift' ignored (in ignored keynames=set(['Shift_L', 'Shift_R']))[0m
134[36m2020-10-23 11:48:54,555 filtered_modifiers_set(['lock', 'shift'])=set(['lock'])[0m
135[36m2020-10-23 11:48:54,555 handle_key((1, True, 'Shift_L', 65505, 50, ['lock', 'shift'], True, True))[0m
136[36m2020-10-23 11:48:54,555 handle keycode pressing    50: key 'Shift_L'[0m
137[36m2020-10-23 11:48:54,555 fake_key(50, True)[0m
138
139--------------------------------
140
141// press '8' -> terminal prints '8', but should be '*' because Caps_Lock shouldn't effect number key and Shift_L is still in effect
142[36m2020-10-23 11:48:59,617 will try levels: [0, 4, 1, 5, 2, 6, 3, 7][0m
143[36m2020-10-23 11:48:59,618 do_get_keycode(56, 'asterisk', True, ['lock', 'shift'], 0)=17 (level=1, shift=False, mode=0)[0m
144[36m2020-10-23 11:48:59,618 removing 'shift' from modifiers[0m
145[36m2020-10-23 11:48:59,618 process_key_action(['key-action', 1, 'asterisk', True, ('lock', 'shift'), 42, '*', 56, 0]) server keycode=17, group=0[0m
146[36m2020-10-23 11:48:59,618 set_keyboard_layout_group(0) config=KeyboardConfig(us /  / None), current keyboard group=0[0m
147[36m2020-10-23 11:48:59,618 filtered_modifiers_set(['lock', 'shift'])=set(['lock', 'shift'])[0m
148[36m2020-10-23 11:48:59,618 filtered_modifiers_set(['lock'])=set(['lock'])[0m
149[36m2020-10-23 11:48:59,618 make_keymask_match(['lock']) current mask: set(['lock', 'shift']), wanted: set(['lock']), ignoring=17/['asterisk'], keys_pressed={50: 'Shift_L'}[0m
150[36m2020-10-23 11:48:59,619 found the key pressed for shift: Shift_L[0m
151[36m2020-10-23 11:48:59,619 keynames(shift)=set(['Shift_L', 'Shift_R']), keycodes=[50, 62], nuisance=False, nuisance keys=set(['lock', 'mod2'])[0m
152[36m2020-10-23 11:48:59,619 change_mask(remove) ['lock'] modifier 'shift' using keycode 50[0m
153[36m2020-10-23 11:48:59,619 change_mask(set(['shift']), False, remove) failed=[][0m
154[36m2020-10-23 11:48:59,620 change_mask(set([]), True, add) failed=[][0m
155[36m2020-10-23 11:48:59,620 is_modifier(17) not found[0m
156[36m2020-10-23 11:48:59,620 handle_key((1, True, 'asterisk', 42, 17, ['lock'], False, True))[0m
157[36m2020-10-23 11:48:59,620 handle keycode pressing    17: key 'asterisk'[0m
158[36m2020-10-23 11:48:59,620 fake_key(17, True)[0m
159[36m2020-10-23 11:48:59,620 scheduling key repeat timer with delay 500 for asterisk / 17[0m
160
161// release '8'
162[36m2020-10-23 11:49:00,001 process_key_action(['key-action', 1, 'asterisk', False, ('lock', 'shift'), 42, '*', 56, 0]) server keycode=17, group=0[0m
163[36m2020-10-23 11:49:00,001 set_keyboard_layout_group(0) config=KeyboardConfig(us /  / None), current keyboard group=0[0m
164[36m2020-10-23 11:49:00,002 filtered_modifiers_set(['lock'])=set(['lock'])[0m
165[36m2020-10-23 11:49:00,002 filtered_modifiers_set(['lock', 'shift'])=set(['lock', 'shift'])[0m
166[36m2020-10-23 11:49:00,002 make_keymask_match(['lock', 'shift']) current mask: set(['lock']), wanted: set(['lock', 'shift']), ignoring=17/['asterisk'], keys_pressed={17: 'asterisk', 50: 'Shift_L'}[0m
167[36m2020-10-23 11:49:00,003 change_mask(set([]), False, remove) failed=[][0m
168[36m2020-10-23 11:49:00,003 found the key pressed for shift: Shift_L[0m
169[36m2020-10-23 11:49:00,003 keynames(shift)=set(['Shift_L', 'Shift_R']), keycodes=[50, 62], nuisance=False, nuisance keys=set(['lock', 'mod2'])[0m
170[36m2020-10-23 11:49:00,003 change_mask(add) ['lock', 'shift'] modifier 'shift' using keycode 50[0m
171[36m2020-10-23 11:49:00,003 change_mask(set(['shift']), True, add) failed=[][0m
172[36m2020-10-23 11:49:00,004 is_modifier(17) not found[0m
173[36m2020-10-23 11:49:00,004 handle_key((1, False, 'asterisk', 42, 17, ['lock', 'shift'], False, True))[0m
174[36m2020-10-23 11:49:00,004 handle keycode unpressing  17: key 'asterisk'[0m
175[36m2020-10-23 11:49:00,004 fake_key(17, False)[0m
176
177--------------------------------
178
179// press '9' -> terminal prints '(', which is strangely inconsistent with the result of pressing the '8' key with Caps_Lock and Shift_L
180[36m2020-10-23 11:49:04,689 will try levels: [0, 4, 1, 5, 2, 6, 3, 7][0m
181[36m2020-10-23 11:49:04,689 do_get_keycode(57, 'parenleft', True, ['lock', 'shift'], 0)=187 (level=0, shift=False, mode=0)[0m
182[36m2020-10-23 11:49:04,689 process_key_action(['key-action', 1, 'parenleft', True, ('lock', 'shift'), 40, '(', 57, 0]) server keycode=187, group=0[0m
183[36m2020-10-23 11:49:04,690 set_keyboard_layout_group(0) config=KeyboardConfig(us /  / None), current keyboard group=0[0m
184[36m2020-10-23 11:49:04,690 filtered_modifiers_set(['lock', 'shift'])=set(['lock', 'shift'])[0m
185[36m2020-10-23 11:49:04,690 filtered_modifiers_set(['lock', 'shift'])=set(['lock', 'shift'])[0m
186[36m2020-10-23 11:49:04,690 is_modifier(187) not found[0m
187[36m2020-10-23 11:49:04,690 handle_key((1, True, 'parenleft', 40, 187, ['lock', 'shift'], False, True))[0m
188[36m2020-10-23 11:49:04,690 handle keycode pressing   187: key 'parenleft'[0m
189[36m2020-10-23 11:49:04,690 fake_key(187, True)[0m
190[36m2020-10-23 11:49:04,691 scheduling key repeat timer with delay 500 for parenleft / 187[0m
191
192// release '9'
193[36m2020-10-23 11:49:05,081 process_key_action(['key-action', 1, 'parenleft', False, ('lock', 'shift'), 40, '(', 57, 0]) server keycode=187, group=0[0m
194[36m2020-10-23 11:49:05,081 set_keyboard_layout_group(0) config=KeyboardConfig(us /  / None), current keyboard group=0[0m
195[36m2020-10-23 11:49:05,082 filtered_modifiers_set(['lock', 'shift'])=set(['lock', 'shift'])[0m
196[36m2020-10-23 11:49:05,082 filtered_modifiers_set(['lock', 'shift'])=set(['lock', 'shift'])[0m
197[36m2020-10-23 11:49:05,082 is_modifier(187) not found[0m
198[36m2020-10-23 11:49:05,082 handle_key((1, False, 'parenleft', 40, 187, ['lock', 'shift'], False, True))[0m
199[36m2020-10-23 11:49:05,082 handle keycode unpressing 187: key 'parenleft'[0m
200[36m2020-10-23 11:49:05,082 fake_key(187, False)[0m
201[36m2020-10-23 11:49:09,762 process_key_action(['key-action', 1, 'Shift_L', False, ('lock',), 65505, '', 16, 0]) server keycode=50, group=0[0m
202
203--------------------------------
204
205// release 'Shift_L"
206[36m2020-10-23 11:49:09,762 set_keyboard_layout_group(0) config=KeyboardConfig(us /  / None), current keyboard group=0[0m
207[36m2020-10-23 11:49:09,763 modifier 'shift' ignored (in ignored keynames=set(['Shift_L', 'Shift_R']))[0m
208[36m2020-10-23 11:49:09,763 filtered_modifiers_set(['lock', 'shift'])=set(['lock'])[0m
209[36m2020-10-23 11:49:09,763 filtered_modifiers_set(['lock'])=set(['lock'])[0m
210[36m2020-10-23 11:49:09,763 handle_key((1, False, 'Shift_L', 65505, 50, ['lock'], True, True))[0m
211[36m2020-10-23 11:49:09,763 handle keycode unpressing  50: key 'Shift_L'[0m
212[36m2020-10-23 11:49:09,763 fake_key(50, False)[0m