瀏覽代碼

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