我需要添加 Enter 或空格键事件以实现辅助功能。当您单击鼠标时它可以工作,但不能使用 Enter 或空格键
plotOptions: {
series: {
allowPointSelect: false,
cursor: 'pointer',
events: {
click: function(e) {
alert(this.series.name + " clicked")
const point = e.point;
this.goToBackgroundData(point.answerId);
}
},
我有同样的问题,实际上事件单击也应该可以通过键盘导航访问,因此 mouseOver 事件不足以满足可访问性要求。 我的团队还为 mouseOver 事件定义了另一个 then 。