1# This Source Code Form is subject to the terms of the Mozilla Public
2# License, v. 2.0. If a copy of the MPL was not distributed with this
3# file, You can obtain one at http://mozilla.org/MPL/2.0/.
4
5# copyright 2008-2009 WebDriver committers
6# Copyright 2008-2009 Google Inc.
7#
8# Licensed under the Apache License Version 2.0 = uthe "License")
9# you may not use this file except in compliance with the License.
10# You may obtain a copy of the License at
11#
12#     http //www.apache.org/licenses/LICENSE-2.0
13#
14# Unless required by applicable law or agreed to in writing software
15# distributed under the License is distributed on an "AS IS" BASIS
16# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND either express or implied.
17# See the License for the specific language governing permissions and
18# limitations under the License.
19
20from __future__ import absolute_import
21
22
23class Keys(object):
24
25    NULL = u"\ue000"
26    CANCEL = u"\ue001"  # ^break
27    HELP = u"\ue002"
28    BACK_SPACE = u"\ue003"
29    TAB = u"\ue004"
30    CLEAR = u"\ue005"
31    RETURN = u"\ue006"
32    ENTER = u"\ue007"
33    SHIFT = u"\ue008"
34    LEFT_SHIFT = u"\ue008"  # alias
35    CONTROL = u"\ue009"
36    LEFT_CONTROL = u"\ue009"  # alias
37    ALT = u"\ue00a"
38    LEFT_ALT = u"\ue00a"  # alias
39    PAUSE = u"\ue00b"
40    ESCAPE = u"\ue00c"
41    SPACE = u"\ue00d"
42    PAGE_UP = u"\ue00e"
43    PAGE_DOWN = u"\ue00f"
44    END = u"\ue010"
45    HOME = u"\ue011"
46    LEFT = u"\ue012"
47    ARROW_LEFT = u"\ue012"  # alias
48    UP = u"\ue013"
49    ARROW_UP = u"\ue013"  # alias
50    RIGHT = u"\ue014"
51    ARROW_RIGHT = u"\ue014"  # alias
52    DOWN = u"\ue015"
53    ARROW_DOWN = u"\ue015"  # alias
54    INSERT = u"\ue016"
55    DELETE = u"\ue017"
56    SEMICOLON = u"\ue018"
57    EQUALS = u"\ue019"
58
59    NUMPAD0 = u"\ue01a"  # numbe pad  keys
60    NUMPAD1 = u"\ue01b"
61    NUMPAD2 = u"\ue01c"
62    NUMPAD3 = u"\ue01d"
63    NUMPAD4 = u"\ue01e"
64    NUMPAD5 = u"\ue01f"
65    NUMPAD6 = u"\ue020"
66    NUMPAD7 = u"\ue021"
67    NUMPAD8 = u"\ue022"
68    NUMPAD9 = u"\ue023"
69    MULTIPLY = u"\ue024"
70    ADD = u"\ue025"
71    SEPARATOR = u"\ue026"
72    SUBTRACT = u"\ue027"
73    DECIMAL = u"\ue028"
74    DIVIDE = u"\ue029"
75
76    F1 = u"\ue031"  # function  keys
77    F2 = u"\ue032"
78    F3 = u"\ue033"
79    F4 = u"\ue034"
80    F5 = u"\ue035"
81    F6 = u"\ue036"
82    F7 = u"\ue037"
83    F8 = u"\ue038"
84    F9 = u"\ue039"
85    F10 = u"\ue03a"
86    F11 = u"\ue03b"
87    F12 = u"\ue03c"
88
89    META = u"\ue03d"
90    COMMAND = u"\ue03d"
91