OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
| 5 [DartUriBase="mojo/services/input_events/public/interfaces"] |
5 module mojo; | 6 module mojo; |
6 | 7 |
7 // Cross platform keyboard codes. | 8 // Cross platform keyboard codes. |
8 // | 9 // |
9 // Because the web has standardized on Win32 keyboard codes, so does mojo. | 10 // Because the web has standardized on Win32 keyboard codes, so does mojo. |
10 enum KeyboardCode { | 11 enum KeyboardCode { |
11 BACK = 0x08, | 12 BACK = 0x08, |
12 TAB = 0x09, | 13 TAB = 0x09, |
13 CLEAR = 0x0C, | 14 CLEAR = 0x0C, |
14 RETURN = 0x0D, | 15 RETURN = 0x0D, |
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
177 ZOOM = 0xFB, | 178 ZOOM = 0xFB, |
178 NONAME = 0xFC, | 179 NONAME = 0xFC, |
179 PA1 = 0xFD, | 180 PA1 = 0xFD, |
180 OEM_CLEAR = 0xFE, | 181 OEM_CLEAR = 0xFE, |
181 UNKNOWN = 0, | 182 UNKNOWN = 0, |
182 | 183 |
183 // Windows does not have a specific key code for AltGr. We use the unused | 184 // Windows does not have a specific key code for AltGr. We use the unused |
184 // VK_OEM_AX to represent AltGr, matching the behaviour of Firefox on Linux. | 185 // VK_OEM_AX to represent AltGr, matching the behaviour of Firefox on Linux. |
185 ALTGR = 0xE1, | 186 ALTGR = 0xE1, |
186 }; | 187 }; |
OLD | NEW |