- commit
- 5777431525edbcb552f8ee7256c9c63db566efbe
- parent
- e59b826a3e55dfd2fac8306b9c0ca76332962e26
- Author
- Tobias Bengfort <tobias.bengfort@posteo.de>
- Date
- 2022-10-15 16:20
cycle on focusPrev()
Diffstat
| M | outline.js | 2 | +- |
1 files changed, 1 insertions, 1 deletions
diff --git a/outline.js b/outline.js
@@ -223,7 +223,7 @@ var focusNext = function(selector) {
223 223 var focusPrev = function(selector) {
224 224 var target;
225 225 walk(document, function(node) {
226 -1 if (node === document.activeElement) {
-1 226 if (target && node === document.activeElement) {
227 227 throw 'StopIteration';
228 228 } else if (aria.matches(node, selector)) {
229 229 target = node;