Changeset 205414 in webkit
- Timestamp:
- Sep 3, 2016 5:38:25 PM (8 years ago)
- Location:
- trunk/Source/WebInspectorUI
- Files:
-
- 1 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebInspectorUI/ChangeLog
r205413 r205414 1 2016-09-03 Devin Rousso <dcrousso+webkit@gmail.com> 2 3 Web Inspector: Change Cmd-D from kill line to selecting next occurrence 4 https://bugs.webkit.org/show_bug.cgi?id=161514 5 6 Reviewed by Brian Burg. 7 8 * UserInterface/Controllers/CodeMirrorTextKillController.js: 9 (WebInspector.CodeMirrorTextKillController): 10 (WebInspector.CodeMirrorTextKillController.prototype._handleTextChange): 11 Remove Cmd-D mapping. 12 13 * UserInterface/External/CodeMirror/sublime.js: 14 * UserInterface/Main.html: 15 Add Sublime Text keybinding support. 16 17 * UserInterface/Views/CodeMirrorAdditions.js: 18 Use Sublime text selectNextOccurrence for Cmd-D instead of deleteLine. 19 1 20 2016-09-03 Devin Rousso <dcrousso+webkit@gmail.com> 2 21 -
trunk/Source/WebInspectorUI/Scripts/update-codemirror-resources.rb
r167294 r205414 37 37 addon/runmode/runmode.js 38 38 addon/search/searchcursor.js 39 keymap/sublime.js 39 40 lib/codemirror.css 40 41 lib/codemirror.js -
trunk/Source/WebInspectorUI/UserInterface/Controllers/CodeMirrorTextKillController.js
r192804 r205414 47 47 "Ctrl-K": this._handleTextKillCommand.bind(this, "killLine", false), 48 48 "Alt-D": this._handleTextKillCommand.bind(this, "delWordAfter", false), 49 "Cmd-D": this._handleTextKillCommand.bind(this, "deleteLine", false),50 49 // Overrides for the 'macDefault' keymap. 51 50 "Alt-Delete": this._handleTextKillCommand.bind(this, "delGroupAfter", false), … … 100 99 let killedText; 101 100 if (change.to.line === change.from.line + 1 && change.removed.length === 2) { 102 // An entire line was deleted, including newline ( Cmd-D).101 // An entire line was deleted, including newline (deleteLine). 103 102 if (change.removed[0].length && !change.removed[1].length) 104 103 killedText = change.removed[0] + "\n"; -
trunk/Source/WebInspectorUI/UserInterface/Main.html
r205211 r205414 221 221 <script src="External/CodeMirror/searchcursor.js"></script> 222 222 <script src="External/CodeMirror/sql.js"></script> 223 <script src="External/CodeMirror/sublime.js"></script> 223 224 <script src="External/CodeMirror/xml.js"></script> 224 225 -
trunk/Source/WebInspectorUI/UserInterface/Views/CodeMirrorAdditions.js
r204924 r205414 585 585 "Shift-Alt-PageDown": alterNumber.bind(null, -100), 586 586 "Cmd-/": "toggleComment", 587 "Cmd-D": "selectNextOccurrence", 587 588 "Shift-Tab": "indentLess", 588 589 fallthrough: "macDefault"
Note: See TracChangeset
for help on using the changeset viewer.