Remove Delete from panel (#322)
Now that we have context menu, we don't need it there
This commit is contained in:
parent
5bdd0a35f6
commit
9fa69448e4
@ -1,4 +1,3 @@
|
|||||||
import React from "react";
|
|
||||||
import { Action } from "./types";
|
import { Action } from "./types";
|
||||||
import { deleteSelectedElements } from "../scene";
|
import { deleteSelectedElements } from "../scene";
|
||||||
import { KEYS } from "../keys";
|
import { KEYS } from "../keys";
|
||||||
@ -12,8 +11,5 @@ export const actionDeleteSelected: Action = {
|
|||||||
},
|
},
|
||||||
contextItemLabel: "Delete",
|
contextItemLabel: "Delete",
|
||||||
contextMenuOrder: 3,
|
contextMenuOrder: 3,
|
||||||
keyTest: event => event.key === KEYS.BACKSPACE || event.key === KEYS.DELETE,
|
keyTest: event => event.key === KEYS.BACKSPACE || event.key === KEYS.DELETE
|
||||||
PanelComponent: ({ updateData }) => (
|
|
||||||
<button onClick={() => updateData(null)}>Delete selected</button>
|
|
||||||
)
|
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user