Fix key release

This commit is contained in:
luboslenco
2020-03-25 15:20:06 +01:00
parent 000011d43c
commit a97cfe5f66
+6 -3
View File
@@ -85,11 +85,14 @@ class App {
});
System.notifyOnApplicationState(
// Release alt after alt-tab
function(){ @:privateAccess Input.getKeyboard().upListener(kha.input.KeyCode.Alt); }, // Foreground
function(){}, // Foreground
function(){}, // Resume
function(){}, // Pause
function(){}, // Background
function(){ // Background
// Release keys after alt-tab / win-tab
@:privateAccess Input.getKeyboard().upListener(kha.input.KeyCode.Alt);
@:privateAccess Input.getKeyboard().upListener(kha.input.KeyCode.Win);
},
function(){} // Shutdown
);