mirror of
https://github.com/godotengine/godot.git
synced 2025-12-07 22:00:10 +00:00
Remove debug focus rect draws from MenuBar and GraphNode.
This commit is contained in:
parent
215acd52e8
commit
5688d30439
3 changed files with 2 additions and 10 deletions
|
|
@ -423,10 +423,6 @@ void MenuBar::_draw_menu_item(int p_index) {
|
|||
bool pressed = (active_menu == p_index);
|
||||
bool rtl = is_layout_rtl();
|
||||
|
||||
if (has_focus() && focused_menu == -1 && p_index == 0) {
|
||||
hovered = true;
|
||||
}
|
||||
|
||||
if (menu_cache[p_index].hidden) {
|
||||
return;
|
||||
}
|
||||
|
|
@ -969,7 +965,7 @@ String MenuBar::get_tooltip(const Point2 &p_pos) const {
|
|||
}
|
||||
|
||||
MenuBar::MenuBar() {
|
||||
set_focus_mode(FOCUS_ALL);
|
||||
set_focus_mode(FOCUS_ACCESSIBILITY);
|
||||
set_process_shortcut_input(true);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue