michael@0: /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ michael@0: /* vim: set ts=2 et sw=2 tw=80: */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this file, michael@0: * You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: // IWYU pragma: private, include "mozilla/KeyTextEvents.h" michael@0: michael@0: /** michael@0: * This header file defines all DOM keys which are defined in nsIDOMKeyEvent. michael@0: * You must define NS_DEFINE_VK macro before including this. michael@0: * michael@0: * It must have two arguments, (aDOMKeyName, aDOMKeyCode) michael@0: * aDOMKeyName is a key name in DOM. michael@0: * aDOMKeyCode is one of nsIDOMKeyEvent::DOM_VK_*. michael@0: */ michael@0: michael@0: #define DEFINE_VK_INTERNAL(aKeyName) \ michael@0: NS_DEFINE_VK(VK##aKeyName, nsIDOMKeyEvent::DOM_VK##aKeyName) michael@0: michael@0: // Some keycode may have different name in nsIDOMKeyEvent from its key name. michael@0: #define DEFINE_VK_INTERNAL2(aKeyName, aKeyCodeName) \ michael@0: NS_DEFINE_VK(VK##aKeyName, nsIDOMKeyEvent::DOM_VK##aKeyCodeName) michael@0: michael@0: DEFINE_VK_INTERNAL(_CANCEL), michael@0: DEFINE_VK_INTERNAL(_HELP), michael@0: DEFINE_VK_INTERNAL2(_BACK, _BACK_SPACE), michael@0: DEFINE_VK_INTERNAL(_TAB), michael@0: DEFINE_VK_INTERNAL(_CLEAR), michael@0: DEFINE_VK_INTERNAL(_RETURN), michael@0: DEFINE_VK_INTERNAL(_SHIFT), michael@0: DEFINE_VK_INTERNAL(_CONTROL), michael@0: DEFINE_VK_INTERNAL(_ALT), michael@0: DEFINE_VK_INTERNAL(_PAUSE), michael@0: DEFINE_VK_INTERNAL(_CAPS_LOCK), michael@0: DEFINE_VK_INTERNAL(_KANA), michael@0: DEFINE_VK_INTERNAL(_HANGUL), michael@0: DEFINE_VK_INTERNAL(_EISU), michael@0: DEFINE_VK_INTERNAL(_JUNJA), michael@0: DEFINE_VK_INTERNAL(_FINAL), michael@0: DEFINE_VK_INTERNAL(_HANJA), michael@0: DEFINE_VK_INTERNAL(_KANJI), michael@0: DEFINE_VK_INTERNAL(_ESCAPE), michael@0: DEFINE_VK_INTERNAL(_CONVERT), michael@0: DEFINE_VK_INTERNAL(_NONCONVERT), michael@0: DEFINE_VK_INTERNAL(_ACCEPT), michael@0: DEFINE_VK_INTERNAL(_MODECHANGE), michael@0: DEFINE_VK_INTERNAL(_SPACE), michael@0: DEFINE_VK_INTERNAL(_PAGE_UP), michael@0: DEFINE_VK_INTERNAL(_PAGE_DOWN), michael@0: DEFINE_VK_INTERNAL(_END), michael@0: DEFINE_VK_INTERNAL(_HOME), michael@0: DEFINE_VK_INTERNAL(_LEFT), michael@0: DEFINE_VK_INTERNAL(_UP), michael@0: DEFINE_VK_INTERNAL(_RIGHT), michael@0: DEFINE_VK_INTERNAL(_DOWN), michael@0: DEFINE_VK_INTERNAL(_SELECT), michael@0: DEFINE_VK_INTERNAL(_PRINT), michael@0: DEFINE_VK_INTERNAL(_EXECUTE), michael@0: DEFINE_VK_INTERNAL(_PRINTSCREEN), michael@0: DEFINE_VK_INTERNAL(_INSERT), michael@0: DEFINE_VK_INTERNAL(_DELETE), michael@0: michael@0: DEFINE_VK_INTERNAL(_0), michael@0: DEFINE_VK_INTERNAL(_1), michael@0: DEFINE_VK_INTERNAL(_2), michael@0: DEFINE_VK_INTERNAL(_3), michael@0: DEFINE_VK_INTERNAL(_4), michael@0: DEFINE_VK_INTERNAL(_5), michael@0: DEFINE_VK_INTERNAL(_6), michael@0: DEFINE_VK_INTERNAL(_7), michael@0: DEFINE_VK_INTERNAL(_8), michael@0: DEFINE_VK_INTERNAL(_9), michael@0: michael@0: DEFINE_VK_INTERNAL(_COLON), michael@0: DEFINE_VK_INTERNAL(_SEMICOLON), michael@0: DEFINE_VK_INTERNAL(_LESS_THAN), michael@0: DEFINE_VK_INTERNAL(_EQUALS), michael@0: DEFINE_VK_INTERNAL(_GREATER_THAN), michael@0: DEFINE_VK_INTERNAL(_QUESTION_MARK), michael@0: DEFINE_VK_INTERNAL(_AT), michael@0: michael@0: DEFINE_VK_INTERNAL(_A), michael@0: DEFINE_VK_INTERNAL(_B), michael@0: DEFINE_VK_INTERNAL(_C), michael@0: DEFINE_VK_INTERNAL(_D), michael@0: DEFINE_VK_INTERNAL(_E), michael@0: DEFINE_VK_INTERNAL(_F), michael@0: DEFINE_VK_INTERNAL(_G), michael@0: DEFINE_VK_INTERNAL(_H), michael@0: DEFINE_VK_INTERNAL(_I), michael@0: DEFINE_VK_INTERNAL(_J), michael@0: DEFINE_VK_INTERNAL(_K), michael@0: DEFINE_VK_INTERNAL(_L), michael@0: DEFINE_VK_INTERNAL(_M), michael@0: DEFINE_VK_INTERNAL(_N), michael@0: DEFINE_VK_INTERNAL(_O), michael@0: DEFINE_VK_INTERNAL(_P), michael@0: DEFINE_VK_INTERNAL(_Q), michael@0: DEFINE_VK_INTERNAL(_R), michael@0: DEFINE_VK_INTERNAL(_S), michael@0: DEFINE_VK_INTERNAL(_T), michael@0: DEFINE_VK_INTERNAL(_U), michael@0: DEFINE_VK_INTERNAL(_V), michael@0: DEFINE_VK_INTERNAL(_W), michael@0: DEFINE_VK_INTERNAL(_X), michael@0: DEFINE_VK_INTERNAL(_Y), michael@0: DEFINE_VK_INTERNAL(_Z), michael@0: michael@0: DEFINE_VK_INTERNAL(_WIN), michael@0: DEFINE_VK_INTERNAL(_CONTEXT_MENU), michael@0: DEFINE_VK_INTERNAL(_SLEEP), michael@0: michael@0: DEFINE_VK_INTERNAL(_NUMPAD0), michael@0: DEFINE_VK_INTERNAL(_NUMPAD1), michael@0: DEFINE_VK_INTERNAL(_NUMPAD2), michael@0: DEFINE_VK_INTERNAL(_NUMPAD3), michael@0: DEFINE_VK_INTERNAL(_NUMPAD4), michael@0: DEFINE_VK_INTERNAL(_NUMPAD5), michael@0: DEFINE_VK_INTERNAL(_NUMPAD6), michael@0: DEFINE_VK_INTERNAL(_NUMPAD7), michael@0: DEFINE_VK_INTERNAL(_NUMPAD8), michael@0: DEFINE_VK_INTERNAL(_NUMPAD9), michael@0: DEFINE_VK_INTERNAL(_MULTIPLY), michael@0: DEFINE_VK_INTERNAL(_ADD), michael@0: DEFINE_VK_INTERNAL(_SEPARATOR), michael@0: DEFINE_VK_INTERNAL(_SUBTRACT), michael@0: DEFINE_VK_INTERNAL(_DECIMAL), michael@0: DEFINE_VK_INTERNAL(_DIVIDE), michael@0: michael@0: DEFINE_VK_INTERNAL(_F1), michael@0: DEFINE_VK_INTERNAL(_F2), michael@0: DEFINE_VK_INTERNAL(_F3), michael@0: DEFINE_VK_INTERNAL(_F4), michael@0: DEFINE_VK_INTERNAL(_F5), michael@0: DEFINE_VK_INTERNAL(_F6), michael@0: DEFINE_VK_INTERNAL(_F7), michael@0: DEFINE_VK_INTERNAL(_F8), michael@0: DEFINE_VK_INTERNAL(_F9), michael@0: DEFINE_VK_INTERNAL(_F10), michael@0: DEFINE_VK_INTERNAL(_F11), michael@0: DEFINE_VK_INTERNAL(_F12), michael@0: DEFINE_VK_INTERNAL(_F13), michael@0: DEFINE_VK_INTERNAL(_F14), michael@0: DEFINE_VK_INTERNAL(_F15), michael@0: DEFINE_VK_INTERNAL(_F16), michael@0: DEFINE_VK_INTERNAL(_F17), michael@0: DEFINE_VK_INTERNAL(_F18), michael@0: DEFINE_VK_INTERNAL(_F19), michael@0: DEFINE_VK_INTERNAL(_F20), michael@0: DEFINE_VK_INTERNAL(_F21), michael@0: DEFINE_VK_INTERNAL(_F22), michael@0: DEFINE_VK_INTERNAL(_F23), michael@0: DEFINE_VK_INTERNAL(_F24), michael@0: michael@0: DEFINE_VK_INTERNAL(_NUM_LOCK), michael@0: DEFINE_VK_INTERNAL(_SCROLL_LOCK), michael@0: michael@0: DEFINE_VK_INTERNAL(_WIN_OEM_FJ_JISHO), michael@0: DEFINE_VK_INTERNAL(_WIN_OEM_FJ_MASSHOU), michael@0: DEFINE_VK_INTERNAL(_WIN_OEM_FJ_TOUROKU), michael@0: DEFINE_VK_INTERNAL(_WIN_OEM_FJ_LOYA), michael@0: DEFINE_VK_INTERNAL(_WIN_OEM_FJ_ROYA), michael@0: michael@0: DEFINE_VK_INTERNAL(_CIRCUMFLEX), michael@0: DEFINE_VK_INTERNAL(_EXCLAMATION), michael@0: DEFINE_VK_INTERNAL(_DOUBLE_QUOTE), michael@0: DEFINE_VK_INTERNAL(_HASH), michael@0: DEFINE_VK_INTERNAL(_DOLLAR), michael@0: DEFINE_VK_INTERNAL(_PERCENT), michael@0: DEFINE_VK_INTERNAL(_AMPERSAND), michael@0: DEFINE_VK_INTERNAL(_UNDERSCORE), michael@0: DEFINE_VK_INTERNAL(_OPEN_PAREN), michael@0: DEFINE_VK_INTERNAL(_CLOSE_PAREN), michael@0: DEFINE_VK_INTERNAL(_ASTERISK), michael@0: DEFINE_VK_INTERNAL(_PLUS), michael@0: DEFINE_VK_INTERNAL(_PIPE), michael@0: DEFINE_VK_INTERNAL(_HYPHEN_MINUS), michael@0: michael@0: DEFINE_VK_INTERNAL(_OPEN_CURLY_BRACKET), michael@0: DEFINE_VK_INTERNAL(_CLOSE_CURLY_BRACKET), michael@0: michael@0: DEFINE_VK_INTERNAL(_TILDE), michael@0: michael@0: DEFINE_VK_INTERNAL(_VOLUME_MUTE), michael@0: DEFINE_VK_INTERNAL(_VOLUME_DOWN), michael@0: DEFINE_VK_INTERNAL(_VOLUME_UP), michael@0: michael@0: DEFINE_VK_INTERNAL(_COMMA), michael@0: DEFINE_VK_INTERNAL(_PERIOD), michael@0: DEFINE_VK_INTERNAL(_SLASH), michael@0: DEFINE_VK_INTERNAL(_BACK_QUOTE), michael@0: DEFINE_VK_INTERNAL(_OPEN_BRACKET), michael@0: DEFINE_VK_INTERNAL(_BACK_SLASH), michael@0: DEFINE_VK_INTERNAL(_CLOSE_BRACKET), michael@0: DEFINE_VK_INTERNAL(_QUOTE), michael@0: michael@0: DEFINE_VK_INTERNAL(_META), michael@0: DEFINE_VK_INTERNAL(_ALTGR), michael@0: michael@0: DEFINE_VK_INTERNAL(_WIN_ICO_HELP), michael@0: DEFINE_VK_INTERNAL(_WIN_ICO_00), michael@0: DEFINE_VK_INTERNAL(_WIN_ICO_CLEAR), michael@0: DEFINE_VK_INTERNAL(_WIN_OEM_RESET), michael@0: DEFINE_VK_INTERNAL(_WIN_OEM_JUMP), michael@0: DEFINE_VK_INTERNAL(_WIN_OEM_PA1), michael@0: DEFINE_VK_INTERNAL(_WIN_OEM_PA2), michael@0: DEFINE_VK_INTERNAL(_WIN_OEM_PA3), michael@0: DEFINE_VK_INTERNAL(_WIN_OEM_WSCTRL), michael@0: DEFINE_VK_INTERNAL(_WIN_OEM_CUSEL), michael@0: DEFINE_VK_INTERNAL(_WIN_OEM_ATTN), michael@0: DEFINE_VK_INTERNAL(_WIN_OEM_FINISH), michael@0: DEFINE_VK_INTERNAL(_WIN_OEM_COPY), michael@0: DEFINE_VK_INTERNAL(_WIN_OEM_AUTO), michael@0: DEFINE_VK_INTERNAL(_WIN_OEM_ENLW), michael@0: DEFINE_VK_INTERNAL(_WIN_OEM_BACKTAB), michael@0: michael@0: DEFINE_VK_INTERNAL(_ATTN), michael@0: DEFINE_VK_INTERNAL(_CRSEL), michael@0: DEFINE_VK_INTERNAL(_EXSEL), michael@0: DEFINE_VK_INTERNAL(_EREOF), michael@0: DEFINE_VK_INTERNAL(_PLAY), michael@0: DEFINE_VK_INTERNAL(_ZOOM), michael@0: DEFINE_VK_INTERNAL(_PA1), michael@0: DEFINE_VK_INTERNAL(_WIN_OEM_CLEAR) michael@0: michael@0: #undef DEFINE_VK_INTERNAL michael@0: #undef DEFINE_VK_INTERNAL2