Commit f527a990 authored by Christian Winter's avatar Christian Winter

input field behaviour working normal again

parent e92b3871
Pipeline #5053015 passed with stage
in 46 seconds
......@@ -31,7 +31,7 @@ class Input {
break;
}
if (Application.currentView) {
if (Application.currentFocus instanceof View) {
Application.currentView.keyDown(e.keyCode);
Application.currentView.logic.currentState.keyDown(e.keyCode);
}
......@@ -39,8 +39,8 @@ class Input {
//if (Application.currentFocus)
// Application.currentFocus.keyDown(e.keyCode);
// dont prevent default
if (Application.currentView && !(
// dont prevent default if inside view
if (Application.currentFocus && !(
e.keyCode == Key.F12
|| (e.keyCode == Key.L && Input.isKeyDown(Key.Control))
|| e.keyCode == Key.F6
......@@ -68,7 +68,7 @@ class Input {
switch (e.keyCode) {
default:
if (Application.currentView)
if (Application.currentFocus instanceof View)
{
Application.currentView.keyUp(e.keyCode);
Application.currentView.logic.currentState.keyUp(e.keyCode);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment