From f6df05764dc60e16829885da71984f3765fabab1 Mon Sep 17 00:00:00 2001 From: WolverinDEV Date: Fri, 1 May 2020 15:22:19 +0200 Subject: [PATCH] Fixed mouse 1 button select --- shared/js/ui/modal/ModalKeySelect.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shared/js/ui/modal/ModalKeySelect.ts b/shared/js/ui/modal/ModalKeySelect.ts index e890ac89..33c6dbd7 100644 --- a/shared/js/ui/modal/ModalKeySelect.ts +++ b/shared/js/ui/modal/ModalKeySelect.ts @@ -35,7 +35,7 @@ export function spawnKeySelect(callback: (key?: KeyEvent) => void) { button_save.on('click', () => { if(__build.version !== "web") { /* Because pressing the close button is also a mouse action */ - if(current_key_age + 1000 > Date.now() && current_key.key_code == "MOUSE2") + if(current_key_age + 1000 > Date.now() && current_key.key_code == "MOUSE1") current_key = last_key; }