You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-12-31 18:41:20 +00:00
Make EditorFileDialog inherit FileDialog
This commit is contained in:
@@ -2695,7 +2695,7 @@ int FileSystemDock::_get_menu_option_from_key(const Ref<InputEventKey> &p_key) {
|
||||
return FILE_MENU_OPEN_EXTERNAL;
|
||||
} else if (ED_IS_SHORTCUT("filesystem_dock/open_in_terminal", p_key)) {
|
||||
return FILE_MENU_OPEN_IN_TERMINAL;
|
||||
} else if (ED_IS_SHORTCUT("file_dialog/focus_path", p_key)) {
|
||||
} else if (ED_IS_SHORTCUT("filesystem_dock/focus_path", p_key)) {
|
||||
return EXTRA_FOCUS_PATH;
|
||||
} else if (ED_IS_SHORTCUT("editor/open_search", p_key)) {
|
||||
return EXTRA_FOCUS_FILTER;
|
||||
@@ -4234,6 +4234,11 @@ FileSystemDock::FileSystemDock() {
|
||||
ED_SHORTCUT("filesystem_dock/open_in_terminal", TTRC("Open in Terminal"), KeyModifierMask::CMD_OR_CTRL | KeyModifierMask::ALT | Key::T);
|
||||
#endif
|
||||
|
||||
ED_SHORTCUT("filesystem_dock/focus_path", TTRC("Focus Path"), KeyModifierMask::CMD_OR_CTRL | Key::L);
|
||||
// Allow both Cmd + L and Cmd + Shift + G to match Safari's and Finder's shortcuts respectively.
|
||||
ED_SHORTCUT_OVERRIDE_ARRAY("filesystem_dock/focus_path", "macos",
|
||||
{ int32_t(KeyModifierMask::META | Key::L), int32_t(KeyModifierMask::META | KeyModifierMask::SHIFT | Key::G) });
|
||||
|
||||
// Properly translating color names would require a separate HashMap, so for simplicity they are provided as comments.
|
||||
folder_colors["red"] = Color(1.0, 0.271, 0.271); // TTR("Red")
|
||||
folder_colors["orange"] = Color(1.0, 0.561, 0.271); // TTR("Orange")
|
||||
|
||||
Reference in New Issue
Block a user