Skip to content

Commit 4536794

Browse files
committed
remove unused code
1 parent 1c45ddf commit 4536794

1 file changed

Lines changed: 0 additions & 19 deletions

File tree

src/pages/options/routes/script/ScriptEditor.tsx

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -69,25 +69,6 @@ const Editor: React.FC<{
6969
node.editor.uuid = script.uuid;
7070
}
7171
hotKeys.forEach((item) => {
72-
/*
73-
74-
75-
hotKeys.forEach((item) => {
76-
codeEditor.current?.editor.addCommand(item.hotKey, () => {
77-
// 获取当前激活的editor(通过editor._focusTracker._hasFocus判断editor激活状态 可能有更好的方法)
78-
const activeEditor = editor
79-
.getEditors()
80-
// @ts-ignore
81-
// eslint-disable-next-line no-underscore-dangle
82-
.find((i) => i._focusTracker._hasFocus);
83-
84-
// 仅在获取到激活的editor时,通过editor上绑定的uuid获取Script,并指定激活的editor执行快捷键action
85-
activeEditor &&
86-
// @ts-ignore
87-
item.action(ScriptMap.get(activeEditor.uuid), activeEditor);
88-
});
89-
});
90-
*/
9172
node.editor.addAction({
9273
id: item.id,
9374
label: item.title,

0 commit comments

Comments
 (0)