You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-22 15:06:45 +00:00
Fixed freelook conflict with text inputs
This commit is contained in:
@@ -775,6 +775,11 @@ void SpatialEditorViewport::_sinput(const Ref<InputEvent> &p_event) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
freelook_active = b->is_pressed();
|
freelook_active = b->is_pressed();
|
||||||
|
if (freelook_active && !surface->has_focus()) {
|
||||||
|
// Focus usually doesn't trigger on right-click, but in case of freelook it should,
|
||||||
|
// otherwise using keyboard navigation would misbehave
|
||||||
|
surface->grab_focus();
|
||||||
|
}
|
||||||
|
|
||||||
} break;
|
} break;
|
||||||
case BUTTON_MIDDLE: {
|
case BUTTON_MIDDLE: {
|
||||||
|
|||||||
Reference in New Issue
Block a user