Skip to content

Add keyboard shortcut to toggle "show hidden files" in FileDialog

Ghost User requested to merge github/fork/neikeq/filedialog_hotkeys into master

Keyboard shortcut to toggle "show hidden files" in file dialog: Ctrl + H

Added bool Control::window_is_modal_on_top(Control* p_modal) method to avoid handling the input in dialogs that are behind the one on top.

More shortcuts could be added later, like refresh or zoom thumbnails.

Note: Using this shortcut in EditorFileDialog modifies "file_dialog/show_hidden_files" property in the editor settings. However, doing so on FileDialog does not (I didn't find a clean way to do it... Would #ifdef TOOLS_ENABLED do the job?).

Merge request reports