diff options
Diffstat (limited to 'scene/gui/shortcut.cpp')
-rw-r--r-- | scene/gui/shortcut.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/scene/gui/shortcut.cpp b/scene/gui/shortcut.cpp index a529c52065..9f5b9c40c2 100644 --- a/scene/gui/shortcut.cpp +++ b/scene/gui/shortcut.cpp @@ -46,10 +46,11 @@ bool ShortCut::is_shortcut(const Ref<InputEvent> &p_event) const { } String ShortCut::get_as_text() const { - if (shortcut.is_valid()) + if (shortcut.is_valid()) { return shortcut->as_text(); - else + } else { return "None"; + } } bool ShortCut::is_valid() const { |