Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(19)

Side by Side Diff: Source/devtools/front_end/source_frame/CodeMirrorTextEditor.js

Issue 1056723002: DevTools: [CodeMirror] add Cmd-Backspace for the mac text editor (Closed) Base URL: https://chromium.googlesource.com/chromium/blink@master
Patch Set: Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698