| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 "Cmd-Up": "goDocStart", | 106 "Cmd-Up": "goDocStart", |
| 107 "Cmd-Down": "goDocEnd", | 107 "Cmd-Down": "goDocEnd", |
| 108 "Alt-Left": "goGroupLeft", | 108 "Alt-Left": "goGroupLeft", |
| 109 "Alt-Right": "goGroupRight", | 109 "Alt-Right": "goGroupRight", |
| 110 "Ctrl-Left": "moveCamelLeft", | 110 "Ctrl-Left": "moveCamelLeft", |
| 111 "Ctrl-Right": "moveCamelRight", | 111 "Ctrl-Right": "moveCamelRight", |
| 112 "Shift-Ctrl-Left": "selectCamelLeft", | 112 "Shift-Ctrl-Left": "selectCamelLeft", |
| 113 "Shift-Ctrl-Right": "selectCamelRight", | 113 "Shift-Ctrl-Right": "selectCamelRight", |
| 114 "Cmd-Left": "goLineStartSmart", | 114 "Cmd-Left": "goLineStartSmart", |
| 115 "Cmd-Right": "goLineEnd", | 115 "Cmd-Right": "goLineEnd", |
| 116 "Cmd-Backspace": "delLineLeft", |
| 116 "Alt-Backspace": "delGroupBefore", | 117 "Alt-Backspace": "delGroupBefore", |
| 117 "Alt-Delete": "delGroupAfter", | 118 "Alt-Delete": "delGroupAfter", |
| 118 "Cmd-/": "toggleComment", | 119 "Cmd-/": "toggleComment", |
| 119 "Cmd-D": "selectNextOccurrence", | 120 "Cmd-D": "selectNextOccurrence", |
| 120 "Cmd-U": "undoLastSelection", | 121 "Cmd-U": "undoLastSelection", |
| 121 fallthrough: "devtools-common" | 122 fallthrough: "devtools-common" |
| 122 }; | 123 }; |
| 123 | 124 |
| 124 WebInspector.settings.textEditorIndent.addChangeListener(this._onUpdateEdito
rIndentation, this); | 125 WebInspector.settings.textEditorIndent.addChangeListener(this._onUpdateEdito
rIndentation, this); |
| 125 WebInspector.settings.textEditorAutoDetectIndent.addChangeListener(this._onU
pdateEditorIndentation, this); | 126 WebInspector.settings.textEditorAutoDetectIndent.addChangeListener(this._onU
pdateEditorIndentation, this); |
| (...skipping 2019 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2145 WebInspector.CodeMirrorTextEditor._overrideModeWithPrefixedTokens("javascript",
"js-"); | 2146 WebInspector.CodeMirrorTextEditor._overrideModeWithPrefixedTokens("javascript",
"js-"); |
| 2146 WebInspector.CodeMirrorTextEditor._overrideModeWithPrefixedTokens("xml", "xml-")
; | 2147 WebInspector.CodeMirrorTextEditor._overrideModeWithPrefixedTokens("xml", "xml-")
; |
| 2147 | 2148 |
| 2148 /** @typedef {{lineNumber: number, event: !Event}} */ | 2149 /** @typedef {{lineNumber: number, event: !Event}} */ |
| 2149 WebInspector.CodeMirrorTextEditor.GutterClickEventData; | 2150 WebInspector.CodeMirrorTextEditor.GutterClickEventData; |
| 2150 | 2151 |
| 2151 /** @enum {string} */ | 2152 /** @enum {string} */ |
| 2152 WebInspector.CodeMirrorTextEditor.Events = { | 2153 WebInspector.CodeMirrorTextEditor.Events = { |
| 2153 GutterClick: "GutterClick" | 2154 GutterClick: "GutterClick" |
| 2154 } | 2155 } |
| OLD | NEW |