Skip to content

Commit

Permalink
Merge pull request #15074 from PJB3005/17-12-26-remove_gui_focus_on_v…
Browse files Browse the repository at this point in the history
…isibility_loss

Hiding a Control now fires NOTIFICATION_FOCUS_EXIT.
  • Loading branch information
reduz authored May 8, 2018
2 parents e854a71 + 7f0a1c1 commit c54ac6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scene/main/viewport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2206,7 +2206,7 @@ void Viewport::_gui_hid_control(Control *p_control) {
*/

if (gui.key_focus == p_control)
gui.key_focus = NULL;
_gui_remove_focus();
if (gui.mouse_over == p_control)
gui.mouse_over = NULL;
if (gui.tooltip == p_control)
Expand Down

0 comments on commit c54ac6a

Please sign in to comment.