mirror of
https://github.com/blender/blender
synced 2026-11-01 03:16:58 +03:00
On WIN32: Tab-completing a path with forward slashes in the file
browser's directory field left the field stuck editing.
The file-list stores the path with back-slashes, so the typed path never
matched it, the button re-activated itself every time it was applied.
The error is caused by the commit that introduced the functionality [0].
Resolve by reverting & replacing the functionality with a generic button
flag: `BUT_TEXTEDIT_AUTOCOMPLETE_KEEP_ACTIVE`.
When the auto-complete is a full match, the value is applied and the
button becomes active again with the cursor at the end,
the same way Tab moves between text fields.
Any text button with auto-complete can now use this,
instead of each buttons callback having to manage it's edit-state.
Also remove a workaround from the "test_blend_autoexec" UI tests which
needed to press "Return" twice to accept a directory
as the first press triggered auto-complete re-activation.
Ref !163842
[0]:
|
||
|---|---|---|
| .. | ||
| modules | ||
| run.py | ||
| run_blender_setup.py | ||
| test_blend_autoexec.py | ||
| test_bpy_types.py | ||
| test_button_input.py | ||
| test_drag_interactions.py | ||
| test_drop_interactions.py | ||
| test_editor_types.py | ||
| test_fullscreen.py | ||
| test_info_reports.py | ||
| test_menu_search_and_exec.py | ||
| test_modifiers_constraints_draw.py | ||
| test_operator_poll.py | ||
| test_pie_menus.py | ||
| test_preferences_draw_all.py | ||
| test_quick_effects.py | ||
| test_render.py | ||
| test_sculpt.py | ||
| test_search_in_editors.py | ||
| test_sequencer.py | ||
| test_tool_activation.py | ||
| test_tools.py | ||
| test_transform.py | ||
| test_undo.py | ||
| test_workspace.py | ||