Skip to content

Commit

Permalink
shift + tab handled (#1119)
Browse files Browse the repository at this point in the history
* fixes #1076

* Update shepherd-element.svelte
  • Loading branch information
faizanu94 authored Aug 31, 2020
1 parent 96a27b9 commit ebdd8fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/components/shepherd-element.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
}
// Backward tab
if (e.shiftKey) {
if (document.activeElement === firstFocusableElement) {
if (document.activeElement === firstFocusableElement || document.activeElement.classList.contains('shepherd-element')) {
e.preventDefault();
lastFocusableElement.focus();
}
Expand Down

0 comments on commit ebdd8fc

Please sign in to comment.