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