2
0
Эх сурвалжийг харах

F5 hotkey to refresh FileDialog/EditorFileDialog

Ignacio Etcheverry 9 жил өмнө
parent
commit
e80e450ee8

+ 4 - 0
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; }
 			}
 

+ 4 - 0
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; }
 			}