chore(onFocus): add disableKeyboardA11y
This commit is contained in:
@@ -156,6 +156,10 @@ export function NodeWrapper<NodeType extends Node>({
|
|||||||
};
|
};
|
||||||
|
|
||||||
const onFocus = () => {
|
const onFocus = () => {
|
||||||
|
if (disableKeyboardA11y) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
const { panZoom } = store.getState();
|
const { panZoom } = store.getState();
|
||||||
const zoom = panZoom?.getViewport().zoom ?? 1;
|
const zoom = panZoom?.getViewport().zoom ?? 1;
|
||||||
panZoom?.setViewport(
|
panZoom?.setViewport(
|
||||||
|
|||||||
Reference in New Issue
Block a user