tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

keys.py (2312B)


      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 
     20 
     21 class Keys:
     22    NULL = "\ue000"
     23    CANCEL = "\ue001"  # ^break
     24    HELP = "\ue002"
     25    BACK_SPACE = "\ue003"
     26    TAB = "\ue004"
     27    CLEAR = "\ue005"
     28    RETURN = "\ue006"
     29    ENTER = "\ue007"
     30    SHIFT = "\ue008"
     31    LEFT_SHIFT = "\ue008"  # alias
     32    CONTROL = "\ue009"
     33    LEFT_CONTROL = "\ue009"  # alias
     34    ALT = "\ue00a"
     35    LEFT_ALT = "\ue00a"  # alias
     36    PAUSE = "\ue00b"
     37    ESCAPE = "\ue00c"
     38    SPACE = "\ue00d"
     39    PAGE_UP = "\ue00e"
     40    PAGE_DOWN = "\ue00f"
     41    END = "\ue010"
     42    HOME = "\ue011"
     43    LEFT = "\ue012"
     44    ARROW_LEFT = "\ue012"  # alias
     45    UP = "\ue013"
     46    ARROW_UP = "\ue013"  # alias
     47    RIGHT = "\ue014"
     48    ARROW_RIGHT = "\ue014"  # alias
     49    DOWN = "\ue015"
     50    ARROW_DOWN = "\ue015"  # alias
     51    INSERT = "\ue016"
     52    DELETE = "\ue017"
     53    SEMICOLON = "\ue018"
     54    EQUALS = "\ue019"
     55 
     56    NUMPAD0 = "\ue01a"  # numbe pad  keys
     57    NUMPAD1 = "\ue01b"
     58    NUMPAD2 = "\ue01c"
     59    NUMPAD3 = "\ue01d"
     60    NUMPAD4 = "\ue01e"
     61    NUMPAD5 = "\ue01f"
     62    NUMPAD6 = "\ue020"
     63    NUMPAD7 = "\ue021"
     64    NUMPAD8 = "\ue022"
     65    NUMPAD9 = "\ue023"
     66    MULTIPLY = "\ue024"
     67    ADD = "\ue025"
     68    SEPARATOR = "\ue026"
     69    SUBTRACT = "\ue027"
     70    DECIMAL = "\ue028"
     71    DIVIDE = "\ue029"
     72 
     73    F1 = "\ue031"  # function  keys
     74    F2 = "\ue032"
     75    F3 = "\ue033"
     76    F4 = "\ue034"
     77    F5 = "\ue035"
     78    F6 = "\ue036"
     79    F7 = "\ue037"
     80    F8 = "\ue038"
     81    F9 = "\ue039"
     82    F10 = "\ue03a"
     83    F11 = "\ue03b"
     84    F12 = "\ue03c"
     85 
     86    META = "\ue03d"
     87    COMMAND = "\ue03d"