|
1 | 1 | /* eslint-disable no-bitwise */ |
2 | 2 | import { |
3 | | - useState, useEffect, useCallback, useMemo, |
| 3 | + useState, useEffect, useCallback, useMemo, |
4 | 4 | } from 'react'; |
5 | 5 |
|
6 | 6 | import GameRoomModes from '../config/gameModes'; |
@@ -64,7 +64,8 @@ const useOption = ( |
64 | 64 | enabled: false, |
65 | 65 | }, |
66 | 66 | readOnly: !editable || loading, |
67 | | - contextmenu: editable && !loading, |
| 67 | + // contextmenu: editable && !loading, |
| 68 | + contextmenu: false, |
68 | 69 | scrollbar: { |
69 | 70 | useShadows: false, |
70 | 71 | verticalHasArrows: true, |
@@ -148,15 +149,15 @@ const useEditor = props => { |
148 | 149 | // model.forceTokenization(model.getLineCount()); |
149 | 150 | // } |
150 | 151 |
|
151 | | - const handleEditorWillMount = () => {}; |
| 152 | + const handleEditorWillMount = () => { }; |
152 | 153 |
|
153 | 154 | const handleEditorDidMount = (currentEditor, currentMonaco) => { |
154 | 155 | setEditor(currentEditor); |
155 | 156 | setMonaco(currentMonaco); |
156 | 157 |
|
157 | 158 | const { |
158 | | - editable, roomMode, checkResult, toggleMuteSound, |
159 | | -} = props; |
| 159 | + editable, roomMode, checkResult, toggleMuteSound, |
| 160 | + } = props; |
160 | 161 |
|
161 | 162 | // Handle copy event |
162 | 163 | // editor.onDidCopyText(event => { |
|
0 commit comments