Просмотр исходного кода

F5 hotkey to refresh FileDialog/EditorFileDialog

Ignacio Etcheverry 9 лет назад
Родитель
Сommit
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; }
 			}