You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 19:11:41 +00:00
Restore the default focus mode for MenuButton and LinkButton, since it is different from the default of BaseButton.
This commit is contained in:
@@ -140,5 +140,6 @@ void LinkButton::_bind_methods() {
|
||||
|
||||
LinkButton::LinkButton() {
|
||||
underline_mode = UNDERLINE_MODE_ALWAYS;
|
||||
set_enabled_focus_mode(FOCUS_NONE);
|
||||
set_default_cursor_shape(CURSOR_POINTING_HAND);
|
||||
}
|
||||
|
||||
@@ -129,6 +129,7 @@ MenuButton::MenuButton() {
|
||||
set_flat(true);
|
||||
set_toggle_mode(true);
|
||||
set_disable_shortcuts(false);
|
||||
set_enabled_focus_mode(FOCUS_NONE);
|
||||
set_process_unhandled_key_input(true);
|
||||
set_action_mode(ACTION_MODE_BUTTON_PRESS);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user