antvis/G6

trigger 配置 ctrl 快捷键参数无法生效 | 'ctrl' as trigger option is not valid. #5937

Noctsyndrome posted onGitHub

Describe the bug / 问题描述

behavior 的 trigger 配置中 'ctrl' 无法生效

https://g6-next.antv.antgroup.com/examples/behavior/select#brush

Steps to Reproduce the Bug or Issue / 重现步骤

官方 brush-select demo,GUI 选择 ctrl 参数后,框选行为无法正常触发。所有 behavior trigger 配置均有此问题。

G6 Version / G6 版本

🆕 5.x

Operating System / 操作系统

Windows

Browser / 浏览器

Chrome

Additional context / 补充说明

image

参考项目源码,快捷键对比注册均获取 event.key 值,ctrl 按键对应 key 值为 ’Control‘。实测 'control' 配置正常生效,需要更新文档及 demo 参数。


Fund this Issue

$0.00
Funded

Pull requests