refactor(keys): accept null as key #1463

This commit is contained in:
moklick
2022-02-22 21:23:22 +01:00
parent 6630935d9e
commit fe5337d1b8
6 changed files with 12 additions and 11 deletions
+2 -2
View File
@@ -7,8 +7,8 @@ import { getConnectedEdges } from '../utils/graph';
import { EdgeChange, KeyCode, NodeChange, ReactFlowState } from '../types';
interface HookParams {
deleteKeyCode: KeyCode;
multiSelectionKeyCode: KeyCode;
deleteKeyCode: KeyCode | null;
multiSelectionKeyCode: KeyCode | null;
}
const selector = (s: ReactFlowState) => ({