How can I get a datagrid to behave like the ctrl key is active?

后端 未结 3 1735

I want my data grid to behave by default as if the user is holding the control key down. So when an item is clicked, then another item they are both part of the selection, c

3条回答
  •  青春惊慌失措
    2021-01-13 20:25

    You could try adding event listeners to the grid for MouseEvents (UP and/or DOWN) with the highest priority, stopping propagation, and redispatching a new MouseEvent with the same properties on the original event.target but this time with ctrlKey=true.

    I'm not sure if it'll cause 10,000 other things to break.

提交回复
热议问题