Example usage for com.badlogic.gdx.scenes.scene2d Stage unfocus

List of usage examples for com.badlogic.gdx.scenes.scene2d Stage unfocus

Introduction

In this page you can find the example usage for com.badlogic.gdx.scenes.scene2d Stage unfocus.

Prototype

public void unfocus(Actor actor) 

Source Link

Document

Removes the touch, keyboard, and scroll focus for the specified actor and any descendants.

Usage

From source file:es.eucm.ead.editor.view.builders.SearchView.java

License:Open Source License

private void hideTextField() {
    Stage stage = textField.getStage();
    stage.unfocus(textField);
    stage.setKeyboardFocus(null);
}