|
@@ -263,7 +263,7 @@
|
|
<div class="button-name">
|
|
<div class="button-name">
|
|
Navigation
|
|
Navigation
|
|
<br>
|
|
<br>
|
|
- area (1)
|
|
|
|
|
|
+ area ({{navigationAreaNum}})
|
|
</div>
|
|
</div>
|
|
<div class="button-shortcut">
|
|
<div class="button-shortcut">
|
|
Alt+1
|
|
Alt+1
|
|
@@ -283,7 +283,7 @@
|
|
<div class="button-name">
|
|
<div class="button-name">
|
|
Window
|
|
Window
|
|
<br>
|
|
<br>
|
|
- area (3)
|
|
|
|
|
|
+ area ({{viewportAreaNum}})
|
|
</div>
|
|
</div>
|
|
<div class="button-shortcut">
|
|
<div class="button-shortcut">
|
|
Alt+2
|
|
Alt+2
|
|
@@ -303,7 +303,7 @@
|
|
<div class="button-name">
|
|
<div class="button-name">
|
|
Interaction
|
|
Interaction
|
|
<br>
|
|
<br>
|
|
- area (1)
|
|
|
|
|
|
+ area ({{interactionAreaNum}})
|
|
</div>
|
|
</div>
|
|
<div class="button-shortcut">
|
|
<div class="button-shortcut">
|
|
Alt+3
|
|
Alt+3
|
|
@@ -467,9 +467,23 @@ export default {
|
|
`),
|
|
`),
|
|
|
|
|
|
audioPlayer: null,
|
|
audioPlayer: null,
|
|
|
|
+
|
|
|
|
+ navigationAreaNum: null,
|
|
|
|
+ viewportAreaNum: null,
|
|
|
|
+ interactionAreaNum: null,
|
|
}
|
|
}
|
|
},
|
|
},
|
|
watch: {
|
|
watch: {
|
|
|
|
+ $route: {
|
|
|
|
+ handler(v) {
|
|
|
|
+ this.$nextTick(() => {
|
|
|
|
+ this.navigationAreaNum = document.querySelectorAll('*[data-aria-navigation-area]').length
|
|
|
|
+ this.viewportAreaNum = document.querySelectorAll('*[data-aria-viewport-area]').length
|
|
|
|
+ this.interactionAreaNum = document.querySelectorAll('*[data-aria-interaction-area]').length
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+ immediate: true,
|
|
|
|
+ },
|
|
ariaSettings: {
|
|
ariaSettings: {
|
|
handler(v) {
|
|
handler(v) {
|
|
let storedSettings = localStorage.getItem('ariaSettings')
|
|
let storedSettings = localStorage.getItem('ariaSettings')
|
|
@@ -617,6 +631,9 @@ export default {
|
|
document.removeEventListener('focusin', this.onFocusIn, {
|
|
document.removeEventListener('focusin', this.onFocusIn, {
|
|
passive: true,
|
|
passive: true,
|
|
})
|
|
})
|
|
|
|
+
|
|
|
|
+ this.$eventBus.$off('request-read')
|
|
|
|
+
|
|
document.removeEventListener('mouseover', this.onMouseOverForContinueRead, {
|
|
document.removeEventListener('mouseover', this.onMouseOverForContinueRead, {
|
|
passive: true,
|
|
passive: true,
|
|
})
|
|
})
|
|
@@ -727,7 +744,7 @@ export default {
|
|
} else if (e.key === "2" && e.altKey && !e.ctrlKey && !e.shiftKey) {
|
|
} else if (e.key === "2" && e.altKey && !e.ctrlKey && !e.shiftKey) {
|
|
utils.getAndFocusNextNodeWithCustomAttribute('ariaViewportArea')
|
|
utils.getAndFocusNextNodeWithCustomAttribute('ariaViewportArea')
|
|
} else if (e.key === "3" && e.altKey && !e.ctrlKey && !e.shiftKey) {
|
|
} else if (e.key === "3" && e.altKey && !e.ctrlKey && !e.shiftKey) {
|
|
- utils.getAndFocusNextNodeWithCustomAttribute('ariaInteractiveArea')
|
|
|
|
|
|
+ utils.getAndFocusNextNodeWithCustomAttribute('ariaInteractionArea')
|
|
}
|
|
}
|
|
},
|
|
},
|
|
loadStoredSettings() {
|
|
loadStoredSettings() {
|
|
@@ -914,7 +931,7 @@ export default {
|
|
e.preventDefault()
|
|
e.preventDefault()
|
|
},
|
|
},
|
|
onClickInteractionArea() {
|
|
onClickInteractionArea() {
|
|
- utils.getAndFocusNextNodeWithCustomAttribute('ariaInteractiveArea')
|
|
|
|
|
|
+ utils.getAndFocusNextNodeWithCustomAttribute('ariaInteractionArea')
|
|
},
|
|
},
|
|
onClickQuit() {
|
|
onClickQuit() {
|
|
this.ariaSettings.isCompActive = false
|
|
this.ariaSettings.isCompActive = false
|