a11y-outline

web extension to navigate document outlines easily
git clone https://git.ce9e.org/a11y-outline.git

commit
2630f44fad3841887e06d3c0229a58c84d6cae90
parent
bc51248a8ff9b988cc153f25580c9b9145086bc4
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2022-10-11 04:32
add shortcuts to navigate headings

see https://github.com/matatk/landmarks/issues/156

Diffstat

M manifest.json 6 ++++++
M outline.js 4 ++++

2 files changed, 10 insertions, 0 deletions


diff --git a/manifest.json b/manifest.json

@@ -27,6 +27,12 @@
   27    27     },
   28    28     "prev-landmark": {
   29    29       "description": "go to previous landmark"
   -1    30     },
   -1    31     "next-heading": {
   -1    32       "description": "go to next heading"
   -1    33     },
   -1    34     "prev-heading": {
   -1    35       "description": "go to previous heading"
   30    36     }
   31    37   },
   32    38 

diff --git a/outline.js b/outline.js

@@ -200,5 +200,9 @@ chrome.runtime.onMessage.addListener(function(request, sender, sendResponse) {
  200   200 		focusNext('landmark');
  201   201 	} else if (request === 'prev-landmark') {
  202   202 		focusPrev('landmark');
   -1   203 	} else if (request === 'next-heading') {
   -1   204 		focusNext('heading');
   -1   205 	} else if (request === 'prev-heading') {
   -1   206 		focusPrev('heading');
  203   207 	}
  204   208 });