فهرست منبع

F5 hotkey to refresh FileDialog/EditorFileDialog

Ignacio Etcheverry 9 سال پیش
والد
کامیت
e80e450ee8
2فایلهای تغییر یافته به همراه8 افزوده شده و 0 حذف شده
  1. 4 0
      scene/gui/file_dialog.cpp
  2. 4 0
      tools/editor/editor_file_dialog.cpp

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