We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1c45ddf commit 4536794Copy full SHA for 4536794
1 file changed
src/pages/options/routes/script/ScriptEditor.tsx
@@ -69,25 +69,6 @@ const Editor: React.FC<{
69
node.editor.uuid = script.uuid;
70
}
71
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
87
- item.action(ScriptMap.get(activeEditor.uuid), activeEditor);
88
- });
89
90
- */
91
node.editor.addAction({
92
id: item.id,
93
label: item.title,
0 commit comments