We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 86632aa commit 1b561fcCopy full SHA for 1b561fc
src/helpers/scopeTab.js
@@ -63,8 +63,13 @@ export default function scopeTab(node, event) {
63
}
64
65
// If the tabbable element does not exist,
66
- // let the browser control the focus
67
- if (typeof tabbable[x] === "undefined") return;
+ // focus head/tail based on shiftKey
+ if (typeof tabbable[x] === "undefined") {
68
+ event.preventDefault();
69
+ target = shiftKey ? tail : head;
70
+ target.focus();
71
+ return;
72
+ }
73
74
event.preventDefault();
75
0 commit comments