2 lines
5.5 KiB
JavaScript
2 lines
5.5 KiB
JavaScript
|
(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[72135],{72135:function(o,r,m){o=m.nmd(o),ace.define("ace/keyboard/vscode",["require","exports","module","ace/keyboard/hash_handler","ace/config"],function(c,i,d){"use strict";var l=c("../keyboard/hash_handler").HashHandler,t=c("../config");i.handler=new l,i.handler.$id="ace/keyboard/vscode",i.handler.addCommands([{name:"toggleWordWrap",exec:function(e){var n=e.session.getUseWrapMode();e.session.setUseWrapMode(!n)},readOnly:!0},{name:"navigateToLastEditLocation",exec:function(e){var n=e.session.getUndoManager().$lastDelta,a=n.action=="remove"?n.start:n.end;e.moveCursorTo(a.row,a.column),e.clearSelection()}},{name:"replaceAll",exec:function(e){e.searchBox?e.searchBox.active===!0&&e.searchBox.replaceOption.checked===!0&&e.searchBox.replaceAll():t.loadModule("ace/ext/searchbox",function(n){n.Search(e,!0)})}},{name:"replaceOne",exec:function(e){e.searchBox?e.searchBox.active===!0&&e.searchBox.replaceOption.checked===!0&&e.searchBox.replace():t.loadModule("ace/ext/searchbox",function(n){n.Search(e,!0)})}},{name:"selectAllMatches",exec:function(e){e.searchBox?e.searchBox.active===!0&&e.searchBox.findAll():t.loadModule("ace/ext/searchbox",function(n){n.Search(e,!1)})}},{name:"toggleFindCaseSensitive",exec:function(e){t.loadModule("ace/ext/searchbox",function(n){n.Search(e,!1);var a=e.searchBox;a.caseSensitiveOption.checked=!a.caseSensitiveOption.checked,a.$syncOptions()})}},{name:"toggleFindInSelection",exec:function(e){t.loadModule("ace/ext/searchbox",function(n){n.Search(e,!1);var a=e.searchBox;a.searchOption.checked=!a.searchRange,a.setSearchRange(a.searchOption.checked&&a.editor.getSelectionRange()),a.$syncOptions()})}},{name:"toggleFindRegex",exec:function(e){t.loadModule("ace/ext/searchbox",function(n){n.Search(e,!1);var a=e.searchBox;a.regExpOption.checked=!a.regExpOption.checked,a.$syncOptions()})}},{name:"toggleFindWholeWord",exec:function(e){t.loadModule("ace/ext/searchbox",function(n){n.Search(e,!1);var a=e.searchBox;a.wholeWordOption.checked=!a.wholeWordOption.checked,a.$syncOptions()})}},{name:"removeSecondaryCursors",exec:function(e){var n=e.selection.ranges;n&&n.length>1?e.selection.toSingleRange(n[n.length-1]):e.selection.clearSelection()}}]),[{bindKey:{mac:"Ctrl-G",win:"Ctrl-G"},name:"gotoline"},{bindKey:{mac:"Command-Shift-L|Command-F2",win:"Ctrl-Shift-L|Ctrl-F2"},name:"findAll"},{bindKey:{mac:"Shift-F8|Shift-Option-F8",win:"Shift-F8|Shift-Alt-F8"},name:"goToPreviousError"},{bindKey:{mac:"F8|Option-F8",win:"F8|Alt-F8"},name:"goToNextError"},{bindKey:{mac:"Command-Shift-P|F1",win:"Ctrl-Shift-P|F1"},name:"openCommandPallete"},{bindKey:{mac:"Shift-Option-Up",win:"Alt-Shift-Up"},name:"copylinesup"},{bindKey:{mac:"Shift-Option-Down",win:"Alt-Shift-Down"},name:"copylinesdown"},{bindKey:{mac:"Command-Shift-K",win:"Ctrl-Shift-K"},name:"removeline"},{bindKey:{mac:"Command-Enter",win:"Ctrl-Enter"},name:"addLineAfter"},{bindKey:{mac:"Command-Shift-Enter",win:"Ctrl-Shift-Enter"},name:"addLineBefore"},{bindKey:{mac:"Command-Shift-\\",win:"Ctrl-Shift-\\"},name:"jumptomatching"},{bindKey:{mac:"Command-]",win:"Ctrl-]"},name:"blockindent"},{bindKey:{mac:"Command-[",win:"Ctrl-["},name:"blockoutdent"},{bindKey:{mac:"Ctrl-PageDown",win:"Alt-PageDown"},name:"pagedown"},{bindKey:{mac:"Ctrl-PageUp",win:"Alt-PageUp"},name:"pageup"},{bindKey:{mac:"Shift-Option-A",win:"Shift-Alt-A"},name:"toggleBlockComment"},{bindKey:{mac:"Option-Z",win:"Alt-Z"},name:"toggleWordWrap"},{bindKey:{mac:"Command-G",win:"F3|Ctrl-K Ctrl-D"},name:"findnext"},{bindKey:{mac:"Command-Shift-G",win:"Shift-F3"},name:"findprevious"},{bindKey:{mac:"Option-Enter",win:"Alt-Enter"},name:"selectAllMatches"},{bindKey:{mac:"Command-D",win:"Ctrl-D"},name:"selectMoreAfter"},{bindKey:{mac:"Command-K Command-D",win:"Ctrl-K Ctrl-D"},name:"selectOrFindNext"},{bindKey:{mac:"Shift-Option-I",win:"Shift-Alt-I"},name:"splitSelectionIntoLines"},{bindKey:{mac:"Command-K M",win:"Ctrl-K M"},name:"modeSelect"},{bindKey:{mac:"Command-Option-[",win:"Ctrl-Shift-["},name:"toggleFoldWidget"},{bindKey:{mac:"Command-Opt
|