mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-07-06 16:27:25 +07:00
Mobile search fixes
This commit is contained in:
@ -243,11 +243,13 @@ public class LogicDialog extends BaseDialog{
|
|||||||
rebuild[0].run();
|
rebuild[0].run();
|
||||||
}).growX().get();
|
}).growX().get();
|
||||||
search.setMessageText("@players.search");
|
search.setMessageText("@players.search");
|
||||||
search.requestKeyboard();
|
|
||||||
Core.app.post(search::requestKeyboard);
|
|
||||||
|
|
||||||
//auto add first match on enter key
|
//auto add first match on enter key
|
||||||
if(!mobile){
|
if(!mobile){
|
||||||
|
|
||||||
|
//don't focus on mobile (it may cause issues with a popup keyboard)
|
||||||
|
Core.app.post(search::requestKeyboard);
|
||||||
|
|
||||||
search.keyDown(KeyCode.enter, () -> {
|
search.keyDown(KeyCode.enter, () -> {
|
||||||
if(!searchText[0].isEmpty() && matched[0] != null){
|
if(!searchText[0].isEmpty() && matched[0] != null){
|
||||||
canvas.add((LStatement)matched[0].get());
|
canvas.add((LStatement)matched[0].get());
|
||||||
|
Reference in New Issue
Block a user