From b466a96c18c614b6f78d675b6b2248a62962fc86 Mon Sep 17 00:00:00 2001 From: Quincy Morgan <2046746+quincylvania@users.noreply.github.com> Date: Tue, 22 Sep 2020 10:13:33 -0400 Subject: [PATCH] Make the help pane keyboard-navigable (re: #8004) --- modules/ui/panes/help.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/ui/panes/help.js b/modules/ui/panes/help.js index a77ef0c81..559dac57c 100644 --- a/modules/ui/panes/help.js +++ b/modules/ui/panes/help.js @@ -286,6 +286,7 @@ export function uiPaneHelp(context) { if (i < docs.length - 1) { var nextLink = selection .append('a') + .attr('href', '#') .attr('class', 'next') .on('click', function() { clickHelp(docs[i + 1], i + 1); @@ -303,6 +304,7 @@ export function uiPaneHelp(context) { if (i > 0) { var prevLink = selection .append('a') + .attr('href', '#') .attr('class', 'previous') .on('click', function() { clickHelp(docs[i - 1], i - 1); @@ -337,6 +339,7 @@ export function uiPaneHelp(context) { .enter() .append('li') .append('a') + .attr('href', '#') .html(function(d) { return d.title; }) .on('click', clickHelp); @@ -349,6 +352,7 @@ export function uiPaneHelp(context) { .placement('top') ) .append('a') + .attr('href', '#') .on('click', clickShortcuts); shortcuts @@ -359,6 +363,7 @@ export function uiPaneHelp(context) { .append('li') .attr('class', 'walkthrough') .append('a') + .attr('href', '#') .on('click', clickWalkthrough); walkthrough