Revert "Feature/csr 989"

This commit is contained in:
Leah Schumann 2023-01-03 09:57:06 -05:00 committed by GitHub
parent e3d8a1b4a1
commit 9656383bc3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -92,21 +92,19 @@ export default {
removeLoader() { removeLoader() {
this.$refs.buttonMain.removeLoader(); this.$refs.buttonMain.removeLoader();
// Restore keyboard input after loader is removed
document.onkeydown = function (e) { document.onkeydown = function (e) {
return true; return true;
}; };
// Reset the button clicked flags
this.navigationButtonClicked = false; this.navigationButtonClicked = false;
}, },
buttonClick() { buttonClick() {
if (!this.navigationButtonClicked) { //prevent keyboard input after button click
// Prevent keyboard input after button click document.onkeydown = function (e) {
document.onkeydown = function (e) { return false;
return false; };
};
if (!this.navigationButtonClicked) {
this.$emit("ForwardClicked"); this.$emit("ForwardClicked");
this.forwardClicked = true; this.forwardClicked = true;
} }