Merge pull request #339 from Safelite/feature/CSR-478
CSR-478 trying to prevent JAWS key press intercept after click
This commit is contained in:
commit
e2df2a3da7
1 changed files with 5 additions and 1 deletions
|
|
@ -6,7 +6,7 @@
|
||||||
© {{new Date().getFullYear()}} Safelite Group
|
© {{new Date().getFullYear()}} Safelite Group
|
||||||
</div>
|
</div>
|
||||||
</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">
|
<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="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" />
|
<textLink linkType="footer" text="Privacy policy" href="https://www.safelite.com/safelite-group-privacy-policy" />
|
||||||
|
|
@ -59,6 +59,7 @@ export default {
|
||||||
return {
|
return {
|
||||||
paddingHeight: 0,
|
paddingHeight: 0,
|
||||||
customButtontext: '',
|
customButtontext: '',
|
||||||
|
roleAttr: '',
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
|
@ -92,9 +93,12 @@ export default {
|
||||||
this.$refs.buttonMain.removeLoader();
|
this.$refs.buttonMain.removeLoader();
|
||||||
},
|
},
|
||||||
buttonClick() {
|
buttonClick() {
|
||||||
|
//prevent keyboard input after button click
|
||||||
document.onkeydown = function (e) {
|
document.onkeydown = function (e) {
|
||||||
return false;
|
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");
|
this.$emit("ForwardClicked");
|
||||||
},
|
},
|
||||||
linkClick() {
|
linkClick() {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue