DXR will be turned off on Tuesday, December 29th. It will redirect to Searchfox.
See the announcement on Discourse.

DXR is a code search and navigation tool aimed at making sense of large projects. It supports full-text and regex searches as well as structural queries.

Mercurial (cdf352f02ac4)

VCS Links

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152
/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

#include "../ShortcutKeys.h"

namespace mozilla {

ShortcutKeyData ShortcutKeys::sInputHandlers[] = {
#include "../ShortcutKeyDefinitionsForInputCommon.h"

    {u"keypress", nullptr, u"a", u"accel", u"cmd_selectAll"},
    {u"keypress", u"VK_LEFT", nullptr, u"control", u"cmd_wordPrevious"},
    {u"keypress", u"VK_RIGHT", nullptr, u"control", u"cmd_wordNext"},
    {u"keypress", u"VK_LEFT", nullptr, u"shift,control",
     u"cmd_selectWordPrevious"},
    {u"keypress", u"VK_RIGHT", nullptr, u"shift,control",
     u"cmd_selectWordNext"},
    {u"keypress", u"VK_LEFT", nullptr, u"alt", u"cmd_beginLine"},
    {u"keypress", u"VK_RIGHT", nullptr, u"alt", u"cmd_endLine"},
    {u"keypress", u"VK_LEFT", nullptr, u"shift,alt", u"cmd_selectBeginLine"},
    {u"keypress", u"VK_RIGHT", nullptr, u"shift,alt", u"cmd_selectEndLine"},
    {u"keypress", u"VK_HOME", nullptr, nullptr, u"cmd_beginLine"},
    {u"keypress", u"VK_END", nullptr, nullptr, u"cmd_endLine"},
    {u"keypress", u"VK_HOME", nullptr, u"shift", u"cmd_selectBeginLine"},
    {u"keypress", u"VK_END", nullptr, u"shift", u"cmd_selectEndLine"},
    {u"keypress", u"VK_BACK", nullptr, u"alt", u"cmd_deleteToBeginningOfLine"},
    {u"keypress", u"VK_DELETE", nullptr, u"alt", u"cmd_deleteToEndOfLine"},

    {nullptr, nullptr, nullptr, nullptr, nullptr}};

ShortcutKeyData ShortcutKeys::sTextAreaHandlers[] = {
#include "../ShortcutKeyDefinitionsForTextAreaCommon.h"

    {u"keypress", nullptr, u"a", u"accel", u"cmd_selectAll"},
    {u"keypress", u"VK_LEFT", nullptr, u"control", u"cmd_wordPrevious"},
    {u"keypress", u"VK_RIGHT", nullptr, u"control", u"cmd_wordNext"},
    {u"keypress", u"VK_LEFT", nullptr, u"shift,control",
     u"cmd_selectWordPrevious"},
    {u"keypress", u"VK_RIGHT", nullptr, u"shift,control",
     u"cmd_selectWordNext"},
    {u"keypress", u"VK_LEFT", nullptr, u"alt", u"cmd_beginLine"},
    {u"keypress", u"VK_RIGHT", nullptr, u"alt", u"cmd_endLine"},
    {u"keypress", u"VK_LEFT", nullptr, u"shift,alt", u"cmd_selectBeginLine"},
    {u"keypress", u"VK_RIGHT", nullptr, u"shift,alt", u"cmd_selectEndLine"},
    {u"keypress", u"VK_UP", nullptr, u"alt", u"cmd_moveTop"},
    {u"keypress", u"VK_DOWN", nullptr, u"alt", u"cmd_moveBottom"},
    {u"keypress", u"VK_UP", nullptr, u"shift,alt", u"cmd_selectTop"},
    {u"keypress", u"VK_DOWN", nullptr, u"shift,alt", u"cmd_selectBottom"},
    {u"keypress", u"VK_PAGE_UP", nullptr, nullptr, u"cmd_movePageUp"},
    {u"keypress", u"VK_PAGE_DOWN", nullptr, nullptr, u"cmd_movePageDown"},
    {u"keypress", u"VK_PAGE_UP", nullptr, u"shift", u"cmd_selectPageUp"},
    {u"keypress", u"VK_PAGE_DOWN", nullptr, u"shift", u"cmd_selectPageDown"},
    {u"keypress", u"VK_PAGE_UP", nullptr, u"alt", u"cmd_moveTop"},
    {u"keypress", u"VK_PAGE_DOWN", nullptr, u"alt", u"cmd_moveBottom"},
    {u"keypress", u"VK_PAGE_UP", nullptr, u"shift,alt", u"cmd_selectTop"},
    {u"keypress", u"VK_PAGE_DOWN", nullptr, u"shift,alt", u"cmd_selectBottom"},
    {u"keypress", u"VK_HOME", nullptr, nullptr, u"cmd_beginLine"},
    {u"keypress", u"VK_END", nullptr, nullptr, u"cmd_endLine"},
    {u"keypress", u"VK_HOME", nullptr, u"shift", u"cmd_selectBeginLine"},
    {u"keypress", u"VK_END", nullptr, u"shift", u"cmd_selectEndLine"},
    {u"keypress", u"VK_HOME", nullptr, u"control", u"cmd_moveTop"},
    {u"keypress", u"VK_END", nullptr, u"control", u"cmd_moveBottom"},
    {u"keypress", u"VK_HOME", nullptr, u"shift,control", u"cmd_selectTop"},
    {u"keypress", u"VK_END", nullptr, u"shift,control", u"cmd_selectBottom"},
    {u"keypress", u"VK_BACK", nullptr, u"alt", u"cmd_deleteToBeginningOfLine"},
    {u"keypress", u"VK_DELETE", nullptr, u"alt", u"cmd_deleteToEndOfLine"},

    {nullptr, nullptr, nullptr, nullptr, nullptr}};

ShortcutKeyData ShortcutKeys::sBrowserHandlers[] = {
#include "../ShortcutKeyDefinitionsForBrowserCommon.h"

    {u"keypress", u"VK_LEFT", nullptr, u"shift", u"cmd_selectCharPrevious"},
    {u"keypress", u"VK_RIGHT", nullptr, u"shift", u"cmd_selectCharNext"},
    {u"keypress", u"VK_LEFT", nullptr, u"control", u"cmd_wordPrevious"},
    {u"keypress", u"VK_RIGHT", nullptr, u"control", u"cmd_wordNext"},
    {u"keypress", u"VK_LEFT", nullptr, u"control,shift",
     u"cmd_selectWordPrevious"},
    {u"keypress", u"VK_RIGHT", nullptr, u"control,shift",
     u"cmd_selectWordNext"},
    {u"keypress", u"VK_LEFT", nullptr, u"alt", u"cmd_beginLine"},
    {u"keypress", u"VK_RIGHT", nullptr, u"alt", u"cmd_endLine"},
    {u"keypress", u"VK_LEFT", nullptr, u"shift,alt", u"cmd_selectBeginLine"},
    {u"keypress", u"VK_RIGHT", nullptr, u"shift,alt", u"cmd_selectEndLine"},
    {u"keypress", u"VK_UP", nullptr, u"shift", u"cmd_selectLinePrevious"},
    {u"keypress", u"VK_DOWN", nullptr, u"shift", u"cmd_selectLineNext"},
    {u"keypress", u"VK_UP", nullptr, u"alt", u"cmd_moveTop"},
    {u"keypress", u"VK_DOWN", nullptr, u"alt", u"cmd_moveBottom"},
    {u"keypress", u"VK_UP", nullptr, u"shift,alt", u"cmd_selectTop"},
    {u"keypress", u"VK_DOWN", nullptr, u"shift,alt", u"cmd_selectBottom"},
    {u"keypress", u"VK_PAGE_UP", nullptr, nullptr, u"cmd_movePageUp"},
    {u"keypress", u"VK_PAGE_DOWN", nullptr, nullptr, u"cmd_movePageDown"},
    {u"keypress", u"VK_PAGE_UP", nullptr, u"shift", u"cmd_selectPageUp"},
    {u"keypress", u"VK_PAGE_DOWN", nullptr, u"shift", u"cmd_selectPageDown"},
    {u"keypress", u"VK_PAGE_UP", nullptr, u"alt", u"cmd_moveTop"},
    {u"keypress", u"VK_PAGE_DOWN", nullptr, u"alt", u"cmd_moveBottom"},
    {u"keypress", u"VK_PAGE_UP", nullptr, u"shift,alt", u"cmd_selectTop"},
    {u"keypress", u"VK_PAGE_DOWN", nullptr, u"shift,alt", u"cmd_selectBottom"},
    {u"keypress", u"VK_HOME", nullptr, nullptr, u"cmd_beginLine"},
    {u"keypress", u"VK_END", nullptr, nullptr, u"cmd_endLine"},
    {u"keypress", u"VK_HOME", nullptr, u"shift", u"cmd_selectBeginLine"},
    {u"keypress", u"VK_END", nullptr, u"shift", u"cmd_selectEndLine"},
    {u"keypress", u"VK_HOME", nullptr, u"control", u"cmd_moveTop"},
    {u"keypress", u"VK_END", nullptr, u"control", u"cmd_moveBottom"},
    {u"keypress", u"VK_HOME", nullptr, u"shift,control", u"cmd_selectTop"},
    {u"keypress", u"VK_END", nullptr, u"shift,control", u"cmd_selectBottom"},
    {u"keypress", u"VK_BACK", nullptr, u"alt", u"cmd_deleteToBeginningOfLine"},
    {u"keypress", u"VK_DELETE", nullptr, u"alt", u"cmd_deleteToEndOfLine"},

    {nullptr, nullptr, nullptr, nullptr, nullptr}};

ShortcutKeyData ShortcutKeys::sEditorHandlers[] = {
#include "../ShortcutKeyDefinitionsForEditorCommon.h"

    {u"keypress", nullptr, u"a", u"accel", u"cmd_selectAll"},
    {u"keypress", u"VK_LEFT", nullptr, u"control", u"cmd_wordPrevious"},
    {u"keypress", u"VK_RIGHT", nullptr, u"control", u"cmd_wordNext"},
    {u"keypress", u"VK_LEFT", nullptr, u"shift,control",
     u"cmd_selectWordPrevious"},
    {u"keypress", u"VK_RIGHT", nullptr, u"shift,control",
     u"cmd_selectWordNext"},
    {u"keypress", u"VK_LEFT", nullptr, u"alt", u"cmd_beginLine"},
    {u"keypress", u"VK_RIGHT", nullptr, u"alt", u"cmd_endLine"},
    {u"keypress", u"VK_LEFT", nullptr, u"shift,alt", u"cmd_selectBeginLine"},
    {u"keypress", u"VK_RIGHT", nullptr, u"shift,alt", u"cmd_selectEndLine"},
    {u"keypress", u"VK_UP", nullptr, u"alt", u"cmd_moveTop"},
    {u"keypress", u"VK_DOWN", nullptr, u"alt", u"cmd_moveBottom"},
    {u"keypress", u"VK_UP", nullptr, u"shift,alt", u"cmd_selectTop"},
    {u"keypress", u"VK_DOWN", nullptr, u"shift,alt", u"cmd_selectBottom"},
    {u"keypress", u"VK_PAGE_UP", nullptr, nullptr, u"cmd_movePageUp"},
    {u"keypress", u"VK_PAGE_DOWN", nullptr, nullptr, u"cmd_movePageDown"},
    {u"keypress", u"VK_PAGE_UP", nullptr, u"shift", u"cmd_selectPageUp"},
    {u"keypress", u"VK_PAGE_DOWN", nullptr, u"shift", u"cmd_selectPageDown"},
    {u"keypress", u"VK_PAGE_UP", nullptr, u"alt", u"cmd_moveTop"},
    {u"keypress", u"VK_PAGE_DOWN", nullptr, u"alt", u"cmd_moveBottom"},
    {u"keypress", u"VK_PAGE_UP", nullptr, u"shift,alt", u"cmd_selectTop"},
    {u"keypress", u"VK_PAGE_DOWN", nullptr, u"shift,alt", u"cmd_selectBottom"},
    {u"keypress", u"VK_HOME", nullptr, nullptr, u"cmd_beginLine"},
    {u"keypress", u"VK_END", nullptr, nullptr, u"cmd_endLine"},
    {u"keypress", u"VK_HOME", nullptr, u"shift", u"cmd_selectBeginLine"},
    {u"keypress", u"VK_END", nullptr, u"shift", u"cmd_selectEndLine"},
    {u"keypress", u"VK_HOME", nullptr, u"control", u"cmd_moveTop"},
    {u"keypress", u"VK_END", nullptr, u"control", u"cmd_moveBottom"},
    {u"keypress", u"VK_HOME", nullptr, u"shift,control", u"cmd_selectTop"},
    {u"keypress", u"VK_END", nullptr, u"shift,control", u"cmd_selectBottom"},
    {u"keypress", u"VK_BACK", nullptr, u"alt", u"cmd_deleteToBeginningOfLine"},
    {u"keypress", u"VK_DELETE", nullptr, u"alt", u"cmd_deleteToEndOfLine"},

    {nullptr, nullptr, nullptr, nullptr, nullptr}};

}  // namespace mozilla