mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-03-01 17:03:30 -05:00
feat: disable find hotkey in editor (#48241)
Signed-off-by: Prince Mendiratta <prince.mendi@gmail.com> Signed-off-by: Prince Mendiratta <prince.mendi@gmail.com>
This commit is contained in:
committed by
GitHub
parent
16adbfde85
commit
deca35257b
@@ -11,10 +11,6 @@
|
||||
top: -999em;
|
||||
}
|
||||
|
||||
.monaco-editor .editor-widget {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
.monaco-menu .monaco-action-bar.vertical .action-item:nth-last-child(n + 5),
|
||||
.monaco-menu .monaco-action-bar.vertical .action-item:last-child,
|
||||
.monaco-menu .monaco-action-bar.vertical .action-label.separator {
|
||||
|
||||
@@ -446,6 +446,12 @@ const Editor = (props: EditorProps): JSX.Element => {
|
||||
newLine.run();
|
||||
}
|
||||
);
|
||||
// @ts-ignore
|
||||
editor._standaloneKeybindingService.addDynamicKeybinding(
|
||||
'-actions.find',
|
||||
null,
|
||||
() => {}
|
||||
);
|
||||
/* eslint-enable */
|
||||
editor.addAction({
|
||||
id: 'execute-challenge',
|
||||
|
||||
Reference in New Issue
Block a user