summaryrefslogtreecommitdiffstats
path: root/scene/gui/control.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <remi@verschelde.fr>2016-01-07 07:50:26 +0100
committerRémi Verschelde <remi@verschelde.fr>2016-01-07 07:50:26 +0100
commita0c39a4b333a2f05c9bb2ccf1be71ac8e18fc9a9 (patch)
tree65adefee4110375ba3653c1b952217dbf1ea4390 /scene/gui/control.cpp
parentc874ad3f52d383ea189f1cd70f07fb01b21e491f (diff)
parent3ca800226ece276d1ff568650134e8857840bfbb (diff)
downloadredot-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.cpp7
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;