简体   繁体   English

NVDA 箭头导航仅适用于 highcharts 中的 alt 键

[英]NVDA arrows navigation only working with alt key in highcharts

I am trying to navigate in the chart with the accessibility module, but to move within the line or bars I have to navigate with the help of Alt + (up, down, left, right) not directly by arrow keys.我正在尝试使用辅助功能模块在图表中导航,但要在线条或条形内移动,我必须借助 Alt +(上、下、左、右)而不是直接通过箭头键进行导航。

Also unable to find ay explanation for that as well, if anyone can suggest some reason or correct course of action that would be really helpful.如果有人可以提出一些真正有帮助的原因或正确的行动方案,也无法找到任何解释。

For sample, this chart also behaves in the same way with NVDA https://www.highcharts.com/samples/highcharts/accessibility/accessible-line例如,此图表与 NVDA https://www.highcharts.com/samples/highcharts/accessibility/accessible-line的行为方式相同

I haven't worked with highcharts before but do you have access to the HTML it generates?我之前没有使用过 highcharts,但是您可以访问它生成的 HTML 吗? You can get it to work by adding role="application" to the <div> that contains the main <svg> .您可以通过将role="application"添加到包含主<svg><div>来让它工作。

<div role="application" id="highcharts-i7l4x35-0" class="highcharts-container " aria-hidden="false" tabindex="0">
  <svg version="1.1" class="highcharts-root highcharts-legend-series-active" xmlns="http://www.w3.org/2000/svg" width="820" height="420" viewBox="0 0 820 420" aria-hidden="false" aria-label="Interactive chart">
    <desc aria-hidden="true">Created with Highcharts 9.2.2</desc>
    ...

Just be careful with role="application" .请注意role="application" It should be used sparingly.应谨慎使用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM