Skip to content

Commit 379efed

Browse files
committed
fix(editor): keybinding and style
1 parent 0e5ee88 commit 379efed

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

addons/editor/src/main/theme.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const editorTheme = $computed(() => {
1414
foreground: commas.helper.toCSSHEX(foregroundRGBA),
1515
type: theme.type,
1616
comment: commas.helper.toCSSHEX(commas.helper.mix(foregroundRGBA, backgroundRGBA, 0.5)),
17-
lineHighlight: commas.helper.toCSSHEX(commas.helper.mix(foregroundRGBA, backgroundRGBA, 0.2)),
17+
lineHighlight: commas.helper.toCSSHEX(commas.helper.mix(foregroundRGBA, backgroundRGBA, 0.1)),
1818
lineNumber: commas.helper.toCSSHEX(commas.helper.mix(foregroundRGBA, backgroundRGBA, 0.5)),
1919
activeLineNumber: commas.helper.toCSSHEX(foregroundRGBA),
2020
} as EditorTheme

addons/editor/src/renderer/CodeEditor.vue

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,13 @@ watchEffect(() => {
8585
'editorStickyScroll.background': theme.background,
8686
},
8787
})
88+
monaco.editor.addKeybindingRules([
89+
{
90+
// eslint-disable-next-line no-bitwise
91+
keybinding: monaco.KeyMod.CtrlCmd | monaco.KeyCode.KeyF,
92+
command: null,
93+
},
94+
])
8895
})
8996
9097
const options = $computed<monaco.editor.IStandaloneEditorConstructionOptions>(() => {

0 commit comments

Comments
 (0)