CSR-478 Block keyboard input after button click
This commit is contained in:
parent
ebfbd8dbdb
commit
047d8adacf
2 changed files with 7 additions and 0 deletions
|
|
@ -258,6 +258,8 @@ export default {
|
|||
},
|
||||
|
||||
async forwardButtonAction() {
|
||||
this.blockKeyboard();
|
||||
|
||||
store.commit(this.storeMutations.UPDATE_IS_REPAIR, this.isWindshieldRepair);
|
||||
|
||||
if (this.isWindshieldRepair){
|
||||
|
|
|
|||
|
|
@ -25,6 +25,11 @@ export default {
|
|||
|
||||
return store.dispatch(type, payload);
|
||||
},
|
||||
blockKeyboard(){
|
||||
document.onkeydown = function (e) {
|
||||
return false;
|
||||
};
|
||||
},
|
||||
savePageDataToStore(page, data){
|
||||
store.commit(storeMutations.UPDATE_PAGE_DATA, { page: page, data: data });
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue