maa3606 пре 2 година
родитељ
комит
68c8cd42d7
1 измењених фајлова са 1 додато и 2 уклоњено
  1. 1 2
      resources/js/src/views/lottery/Slot.vue

+ 1 - 2
resources/js/src/views/lottery/Slot.vue

@@ -273,11 +273,10 @@ export default {
 		});
 
 		this.bodyListener = (e) => {
-			if (e.keyCode === 13 && e.target === document.body) {
+			if (e.keyCode === 13 || e.keyCode === 32 && e.target === document.body) {
 				console.log("enter");
 				this.draw();
 			}
-
 		}
 		document.body.addEventListener('keyup', this.bodyListener, false)
 	},