You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2026-01-06 19:41:11 +00:00
Change editor button focus mode to FOCUS_ACCESSIBILITY.
This commit is contained in:
@@ -1724,7 +1724,7 @@ SceneImportSettingsDialog::SceneImportSettingsDialog() {
|
||||
animation_hbox->add_child(animation_play_button);
|
||||
animation_play_button->set_flat(true);
|
||||
animation_play_button->set_accessibility_name(TTRC("Play"));
|
||||
animation_play_button->set_focus_mode(Control::FOCUS_NONE);
|
||||
animation_play_button->set_focus_mode(Control::FOCUS_ACCESSIBILITY);
|
||||
animation_play_button->set_shortcut(ED_SHORTCUT("scene_import_settings/play_selected_animation", TTRC("Selected Animation Play/Pause"), Key::SPACE));
|
||||
animation_play_button->connect(SceneStringName(pressed), callable_mp(this, &SceneImportSettingsDialog::_play_animation));
|
||||
|
||||
@@ -1732,7 +1732,7 @@ SceneImportSettingsDialog::SceneImportSettingsDialog() {
|
||||
animation_hbox->add_child(animation_stop_button);
|
||||
animation_stop_button->set_flat(true);
|
||||
animation_stop_button->set_accessibility_name(TTRC("Stop"));
|
||||
animation_stop_button->set_focus_mode(Control::FOCUS_NONE);
|
||||
animation_stop_button->set_focus_mode(Control::FOCUS_ACCESSIBILITY);
|
||||
animation_stop_button->set_tooltip_text(TTR("Selected Animation Stop"));
|
||||
animation_stop_button->connect(SceneStringName(pressed), callable_mp(this, &SceneImportSettingsDialog::_stop_current_animation));
|
||||
|
||||
@@ -1743,7 +1743,7 @@ SceneImportSettingsDialog::SceneImportSettingsDialog() {
|
||||
animation_slider->set_max(1.0);
|
||||
animation_slider->set_step(1.0 / 100.0);
|
||||
animation_slider->set_value_no_signal(0.0);
|
||||
animation_slider->set_focus_mode(Control::FOCUS_NONE);
|
||||
animation_slider->set_focus_mode(Control::FOCUS_ACCESSIBILITY);
|
||||
animation_slider->set_accessibility_name(TTRC("Animation"));
|
||||
animation_slider->connect(SceneStringName(value_changed), callable_mp(this, &SceneImportSettingsDialog::_animation_slider_value_changed));
|
||||
|
||||
@@ -1751,7 +1751,7 @@ SceneImportSettingsDialog::SceneImportSettingsDialog() {
|
||||
animation_hbox->add_child(animation_toggle_skeleton_visibility);
|
||||
animation_toggle_skeleton_visibility->set_toggle_mode(true);
|
||||
animation_toggle_skeleton_visibility->set_theme_type_variation("FlatButton");
|
||||
animation_toggle_skeleton_visibility->set_focus_mode(Control::FOCUS_NONE);
|
||||
animation_toggle_skeleton_visibility->set_focus_mode(Control::FOCUS_ACCESSIBILITY);
|
||||
animation_toggle_skeleton_visibility->set_tooltip_text(TTR("Toggle Animation Skeleton Visibility"));
|
||||
animation_toggle_skeleton_visibility->set_accessibility_name(TTRC("Skeleton Visibility"));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user