diff options
| author | Rémi Verschelde <remi@verschelde.fr> | 2016-01-07 07:50:26 +0100 |
|---|---|---|
| committer | Rémi Verschelde <remi@verschelde.fr> | 2016-01-07 07:50:26 +0100 |
| commit | a0c39a4b333a2f05c9bb2ccf1be71ac8e18fc9a9 (patch) | |
| tree | 65adefee4110375ba3653c1b952217dbf1ea4390 /scene/gui/control.cpp | |
| parent | c874ad3f52d383ea189f1cd70f07fb01b21e491f (diff) | |
| parent | 3ca800226ece276d1ff568650134e8857840bfbb (diff) | |
| download | redot-engine-a0c39a4b333a2f05c9bb2ccf1be71ac8e18fc9a9.tar.gz | |
Merge pull request #3191 from neikeq/filedialog_hotkeys
Add keyboard shortcut to toggle "show hidden files" in FileDialog
Diffstat (limited to 'scene/gui/control.cpp')
| -rw-r--r-- | scene/gui/control.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/scene/gui/control.cpp b/scene/gui/control.cpp index 23a7ae00da..34864d68ec 100644 --- a/scene/gui/control.cpp +++ b/scene/gui/control.cpp @@ -862,6 +862,13 @@ bool Control::window_has_modal_stack() const { return data.window->window->modal_stack.size(); } +bool Control::is_window_modal_on_top() const { + + if (window_has_modal_stack()) + return data.window->window->modal_stack.back()->get()==this; + return false; +} + void Control::_window_cancel_tooltip() { window->tooltip=NULL; |
