Skip to content
Snippets Groups Projects
Commit 0e5a895f authored by Janne Mareike Koschinski's avatar Janne Mareike Koschinski
Browse files

Tried yet another fix for the input defocus issue.

parent 074638ca
Branches
No related tags found
No related merge requests found
...@@ -216,10 +216,11 @@ public class SlidingPanelHandler { ...@@ -216,10 +216,11 @@ public class SlidingPanelHandler {
chatline.setOnKeyListener((v, keyCode, event) -> { chatline.setOnKeyListener((v, keyCode, event) -> {
if (event.getAction() == KeyEvent.ACTION_DOWN && (keyCode == KeyEvent.KEYCODE_ENTER || keyCode == KeyEvent.KEYCODE_NUMPAD_ENTER)) { if (event.getAction() == KeyEvent.ACTION_DOWN && (keyCode == KeyEvent.KEYCODE_ENTER || keyCode == KeyEvent.KEYCODE_NUMPAD_ENTER)) {
sendInput(); sendInput();
return true;
} }
// Always return false to make sure we don’t lose focus // Always return false to make sure we don’t lose focus
return true; return false;
}); });
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment