mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Change editor button focus mode to FOCUS_ACCESSIBILITY
.
This commit is contained in:
parent
42c7f14422
commit
22b5a2fc5c
31 changed files with 116 additions and 116 deletions
|
@ -758,7 +758,7 @@ FindReplaceBar::FindReplaceBar() {
|
|||
add_child(toggle_replace_button);
|
||||
toggle_replace_button->set_accessibility_name(TTRC("Replace Mode"));
|
||||
toggle_replace_button->set_flat(true);
|
||||
toggle_replace_button->set_focus_mode(FOCUS_NONE);
|
||||
toggle_replace_button->set_focus_mode(FOCUS_ACCESSIBILITY);
|
||||
toggle_replace_button->connect(SceneStringName(pressed), callable_mp(this, &FindReplaceBar::_toggle_replace_pressed));
|
||||
|
||||
VBoxContainer *vbc_lineedit = memnew(VBoxContainer);
|
||||
|
@ -806,7 +806,7 @@ FindReplaceBar::FindReplaceBar() {
|
|||
find_prev->set_tooltip_text(TTRC("Previous Match"));
|
||||
find_prev->set_accessibility_name(TTRC("Previous Match"));
|
||||
hbc_button_search->add_child(find_prev);
|
||||
find_prev->set_focus_mode(FOCUS_NONE);
|
||||
find_prev->set_focus_mode(FOCUS_ACCESSIBILITY);
|
||||
find_prev->connect(SceneStringName(pressed), callable_mp(this, &FindReplaceBar::search_prev));
|
||||
|
||||
find_next = memnew(Button);
|
||||
|
@ -815,19 +815,19 @@ FindReplaceBar::FindReplaceBar() {
|
|||
find_next->set_tooltip_text(TTRC("Next Match"));
|
||||
find_next->set_accessibility_name(TTRC("Next Match"));
|
||||
hbc_button_search->add_child(find_next);
|
||||
find_next->set_focus_mode(FOCUS_NONE);
|
||||
find_next->set_focus_mode(FOCUS_ACCESSIBILITY);
|
||||
find_next->connect(SceneStringName(pressed), callable_mp(this, &FindReplaceBar::search_next));
|
||||
|
||||
case_sensitive = memnew(CheckBox);
|
||||
hbc_option_search->add_child(case_sensitive);
|
||||
case_sensitive->set_text(TTRC("Match Case"));
|
||||
case_sensitive->set_focus_mode(FOCUS_NONE);
|
||||
case_sensitive->set_focus_mode(FOCUS_ACCESSIBILITY);
|
||||
case_sensitive->connect(SceneStringName(toggled), callable_mp(this, &FindReplaceBar::_search_options_changed));
|
||||
|
||||
whole_words = memnew(CheckBox);
|
||||
hbc_option_search->add_child(whole_words);
|
||||
whole_words->set_text(TTRC("Whole Words"));
|
||||
whole_words->set_focus_mode(FOCUS_NONE);
|
||||
whole_words->set_focus_mode(FOCUS_ACCESSIBILITY);
|
||||
whole_words->connect(SceneStringName(toggled), callable_mp(this, &FindReplaceBar::_search_options_changed));
|
||||
|
||||
// Replace toolbar.
|
||||
|
@ -852,14 +852,14 @@ FindReplaceBar::FindReplaceBar() {
|
|||
selection_only = memnew(CheckBox);
|
||||
hbc_option_replace->add_child(selection_only);
|
||||
selection_only->set_text(TTRC("Selection Only"));
|
||||
selection_only->set_focus_mode(FOCUS_NONE);
|
||||
selection_only->set_focus_mode(FOCUS_ACCESSIBILITY);
|
||||
selection_only->connect(SceneStringName(toggled), callable_mp(this, &FindReplaceBar::_search_options_changed));
|
||||
|
||||
hide_button = memnew(Button);
|
||||
hide_button->set_flat(true);
|
||||
hide_button->set_tooltip_text(TTRC("Hide"));
|
||||
hide_button->set_accessibility_name(TTRC("Hide"));
|
||||
hide_button->set_focus_mode(FOCUS_NONE);
|
||||
hide_button->set_focus_mode(FOCUS_ACCESSIBILITY);
|
||||
hide_button->connect(SceneStringName(pressed), callable_mp(this, &FindReplaceBar::_hide_bar));
|
||||
hide_button->set_v_size_flags(SIZE_SHRINK_CENTER);
|
||||
add_child(hide_button);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue