mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
feat(ui): delete key works on workflow editor
This commit is contained in:
parent
030802295b
commit
567d46b646
@ -38,6 +38,8 @@ import TopCenterPanel from './editorPanels/TopCenterPanel';
|
||||
import TopLeftPanel from './editorPanels/TopLeftPanel';
|
||||
import TopRightPanel from './editorPanels/TopRightPanel';
|
||||
|
||||
const DELETE_KEYS = ['Delete', 'Backspace'];
|
||||
|
||||
// TODO: can we support reactflow? if not, we could style the attribution so it matches the app
|
||||
const proOptions: ProOptions = { hideAttribution: true };
|
||||
|
||||
@ -144,6 +146,7 @@ export const Flow = () => {
|
||||
proOptions={proOptions}
|
||||
style={{ borderRadius }}
|
||||
onPaneClick={handlePaneClick}
|
||||
deleteKeyCode={DELETE_KEYS}
|
||||
>
|
||||
<TopLeftPanel />
|
||||
<TopCenterPanel />
|
||||
|
Loading…
Reference in New Issue
Block a user