Whitespace and highlighting fixes
import org.terasology.rendering.nui.Canvas;
import org.terasology.rendering.nui.InteractionListener;
import org.terasology.rendering.nui.SubRegion;
+import org.terasology.rendering.nui.TabbingManager;
import org.terasology.rendering.nui.databinding.Binding;
import org.terasology.rendering.nui.databinding.DefaultBinding;
import org.terasology.rendering.nui.events.NUIKeyEvent;
@@ -137,7 +138,7 @@ public Vector2i getPreferredContentSize(Canvas canvas, Vector2i areaHint) {
public String getMode() {
if (!isEnabled()) {
return DISABLED_MODE;
- } else if (opened) {
+ } else if (opened || this.equals(TabbingManager.focusedWidget)) {
return ACTIVE_MODE;
}
return DEFAULT_MODE;
