Fixed mouse 1 button select
This commit is contained in:
parent
863249a352
commit
1ace03c6fd
1 changed files with 1 additions and 1 deletions
|
@ -35,7 +35,7 @@ export function spawnKeySelect(callback: (key?: KeyEvent) => void) {
|
||||||
button_save.on('click', () => {
|
button_save.on('click', () => {
|
||||||
if(__build.version !== "web") {
|
if(__build.version !== "web") {
|
||||||
/* Because pressing the close button is also a mouse action */
|
/* 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;
|
current_key = last_key;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue