antvis/G2

The issue has been closed
[Feat]: elementSelect 支持自定义多选热键 #6622
moayuisuda posted onGitHub
Describe the feature / 功能描述
预期:按下左shift之后,可多选元素,松开左shift后,变为单选
重新自定义一个elementSelect
交互的成本有点大,目前想增添一个形似multiSelectHotKey
的参数控制多选的热键
interaction: {
elementSelect: {
multiSelectHotKey: 'ShiftLeft' // hotKey's code
single: false // if "multiSelectHotKey" exist, this will not work
}
}
Are you willing to contribute? / 是否愿意参与贡献?
✅ Yes / 是