CSR-478 trying to prevent JAWS key press intercept after click

This commit is contained in:
CarlNation 2022-04-12 10:30:32 -04:00
parent 12db51a377
commit b2350e2286

View file

@ -6,7 +6,7 @@
© {{new Date().getFullYear()}} Safelite Group
</div>
</div>
<div class="row" :style="`padding-bottom: ${paddingHeight}px`">
<div class="row" :style="`padding-bottom: ${paddingHeight}px`" v-bind:role="roleAttr">
<div class="col d-flex justify-content-center justify-content-around text-center">
<textLink linkType="footer" text="Terms of use" href="https://www.safelite.com/terms-of-use" />
<textLink linkType="footer" text="Privacy policy" href="https://www.safelite.com/safelite-group-privacy-policy" />
@ -59,6 +59,7 @@ export default {
return {
paddingHeight: 0,
customButtontext: '',
roleAttr: '',
}
},
mounted() {
@ -92,9 +93,12 @@ export default {
this.$refs.buttonMain.removeLoader();
},
buttonClick() {
//prevent keyboard input after button click
document.onkeydown = function (e) {
return false;
};
//this role is so that JAWS will not allow keyboard input after button clicked due to JAWS intercepting key presses
this.roleAttr = 'application';
this.$emit("ForwardClicked");
},
linkClick() {