Merge pull request #16152 from hpvb/fix-16131

Allow focus on disabled buttons
This commit is contained in:
Rémi Verschelde 2018-01-30 13:44:28 +01:00 committed by GitHub
commit d1954f464c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -311,10 +311,6 @@ void BaseButton::set_disabled(bool p_disabled) {
status.disabled = p_disabled;
update();
_change_notify("disabled");
if (p_disabled)
set_focus_mode(FOCUS_NONE);
else
set_focus_mode(enabled_focus_mode);
}
bool BaseButton::is_disabled() const {