I read the source code, found if press shift key and click ,then will not trigger the handleClickOn event callback.
so is anyway that i cound custom the event?
i want to select multi node by press shift key and click node .
I read the source code, found if press shift key and click ,then will not trigger the handleClickOn event callback.
so is anyway that i cound custom the event?
i want to select multi node by press shift key and click node .
You can use handleDOMEvents
to register direct event handlers.
if use handleDOMEvents ,then I need custom many event.
if shift press, the handleClickOn and handleClick will not be emited. And i need the click node and node pos info.
if add a EditView props , may be a good idea.
this.allowDefault = view.props.allowDefaultShiftKey === false ? false : event.shiftKey;
I use the handleDOMEvents click event and fixed this problem.