Remove ctrl to stop drawing children
Summary: This feature is annoying and useless Reviewed By: antonk52 Differential Revision: D45696921 fbshipit-source-id: 01c007d3e196a7511b940b7973bb8e6a880e27e5
This commit is contained in:
committed by
Facebook GitHub Bot
parent
da268f0095
commit
0f9eeda2dd
@@ -21,7 +21,6 @@ import {useHotkeys} from 'react-hotkeys-hook';
|
||||
import {Id, Metadata, MetadataId, UINode} from '../types';
|
||||
import {PerfStats} from './PerfStats';
|
||||
import {Visualization2D} from './Visualization2D';
|
||||
import {useKeyboardModifiers} from '../hooks/useKeyboardModifiers';
|
||||
import {Inspector} from './sidebar/Inspector';
|
||||
import {Controls} from './Controls';
|
||||
import {Button, Spin} from 'antd';
|
||||
@@ -41,8 +40,6 @@ export function Component() {
|
||||
|
||||
useHotkeys('ctrl+i', () => setShowPerfStats((show) => !show));
|
||||
|
||||
const {ctrlPressed} = useKeyboardModifiers();
|
||||
|
||||
const [bottomPanelComponent, setBottomPanelComponent] = useState<
|
||||
ReactNode | undefined
|
||||
>();
|
||||
@@ -104,7 +101,6 @@ export function Component() {
|
||||
width={visualiserWidth}
|
||||
nodes={nodes}
|
||||
onSelectNode={instance.uiActions.onSelectNode}
|
||||
modifierPressed={ctrlPressed}
|
||||
/>
|
||||
</Layout.ScrollContainer>
|
||||
</ResizablePanel>
|
||||
|
||||
Reference in New Issue
Block a user