Skip to content

Commit

Permalink
disable contextmenu
Browse files Browse the repository at this point in the history
  • Loading branch information
ReDBrother committed Feb 27, 2025
1 parent dbee0f5 commit 39aaf1e
Showing 1 changed file with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* eslint-disable no-bitwise */
import {
useState, useEffect, useCallback, useMemo,
useState, useEffect, useCallback, useMemo,
} from 'react';

import GameRoomModes from '../config/gameModes';
Expand Down Expand Up @@ -64,7 +64,8 @@ const useOption = (
enabled: false,
},
readOnly: !editable || loading,
contextmenu: editable && !loading,
// contextmenu: editable && !loading,
contextmenu: false,
scrollbar: {
useShadows: false,
verticalHasArrows: true,
Expand Down Expand Up @@ -148,15 +149,15 @@ const useEditor = props => {
// model.forceTokenization(model.getLineCount());
// }

const handleEditorWillMount = () => {};
const handleEditorWillMount = () => { };

const handleEditorDidMount = (currentEditor, currentMonaco) => {
setEditor(currentEditor);
setMonaco(currentMonaco);

const {
editable, roomMode, checkResult, toggleMuteSound,
} = props;
editable, roomMode, checkResult, toggleMuteSound,
} = props;

// Handle copy event
// editor.onDidCopyText(event => {
Expand Down

0 comments on commit 39aaf1e

Please sign in to comment.