mirror of
https://github.com/pybricks/pybricks-code.git
synced 2026-09-15 02:54:07 +00:00
util: drop preventBrowserNativeContextMenu
This is done once at the top-level app, so is no longer needed.
This commit is contained in:
@@ -26,7 +26,6 @@ import {
|
||||
import { useDispatch } from 'react-redux';
|
||||
import { useSelector } from '../reducers';
|
||||
import { isMacOS } from '../utils/os';
|
||||
import { preventBrowserNativeContextMenu } from '../utils/react';
|
||||
import { TreeItemContext, TreeItemData, renderers } from '../utils/tree-renderer';
|
||||
import {
|
||||
explorerActivateFile,
|
||||
@@ -378,7 +377,7 @@ const Explorer: React.VFC = () => {
|
||||
const [i18n] = useI18n();
|
||||
|
||||
return (
|
||||
<div className="h-100" onContextMenu={preventBrowserNativeContextMenu}>
|
||||
<div className="h-100">
|
||||
<Header i18n={i18n} />
|
||||
<Divider />
|
||||
<FileTree i18n={i18n} />
|
||||
|
||||
Reference in New Issue
Block a user