From e80e450ee848b397d6d61c8c23ddd7de6dd3e5e4 Mon Sep 17 00:00:00 2001 From: Ignacio Etcheverry Date: Fri, 15 Jan 2016 21:19:16 +0100 Subject: [PATCH] F5 hotkey to refresh FileDialog/EditorFileDialog --- scene/gui/file_dialog.cpp | 4 ++++ tools/editor/editor_file_dialog.cpp | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/scene/gui/file_dialog.cpp b/scene/gui/file_dialog.cpp index 5b57395e583..56b92608376 100644 --- a/scene/gui/file_dialog.cpp +++ b/scene/gui/file_dialog.cpp @@ -85,6 +85,10 @@ void FileDialog::_unhandled_input(const InputEvent& p_event) { } } break; + case KEY_F5: { + + invalidate(); + } break; default: { handled=false; } } diff --git a/tools/editor/editor_file_dialog.cpp b/tools/editor/editor_file_dialog.cpp index 22cd3845e1d..a9b23767f10 100644 --- a/tools/editor/editor_file_dialog.cpp +++ b/tools/editor/editor_file_dialog.cpp @@ -90,6 +90,10 @@ void EditorFileDialog::_unhandled_input(const InputEvent& p_event) { } } break; + case KEY_F5: { + + invalidate(); + } break; default: { handled=false; } }