Skip to content
This repository was archived by the owner on May 27, 2019. It is now read-only.

Allow using left / right arrows to select buttons #279

Merged
merged 1 commit into from
Jul 25, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions chrome/script.browserify.js
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,16 @@ function keyHandler(e) {
case "ArrowDown":
switchFocus("div.entry:first-child > .login", "nextElementSibling");
break;
case "ArrowRight":
if (document.activeElement.nextElementSibling) {
document.activeElement.nextElementSibling.focus();
}
break;
case "ArrowLeft":
if (document.activeElement.previousElementSibling) {
document.activeElement.previousElementSibling.focus();
}
break;
case "c":
if (e.target.id != "search-field" && e.ctrlKey) {
document.activeElement.parentNode
Expand Down