summaryrefslogtreecommitdiffstats
path: root/editor/editor_zoom_widget.h
diff options
context:
space:
mode:
authorEric M <itsjusteza@gmail.com>2022-03-24 23:03:43 +1000
committerEric M <itsjusteza@gmail.com>2022-09-24 18:24:59 +1000
commit16a3cec71ee2b4a52b1440caa9fa1f9af6a1bf9f (patch)
tree917687f124588a1f0dd6f3565f7291bb34aedad8 /editor/editor_zoom_widget.h
parentf74491fdee9bc2d68668137fbacd8f3a7e7e8df7 (diff)
downloadredot-engine-16a3cec71ee2b4a52b1440caa9fa1f9af6a1bf9f.tar.gz
Fix zoom in/out keyboard shortcuts not working since the introduction of EditorZoomWidget. Add KP shortcuts to zoom in/out.
Diffstat (limited to 'editor/editor_zoom_widget.h')
-rw-r--r--editor/editor_zoom_widget.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/editor/editor_zoom_widget.h b/editor/editor_zoom_widget.h
index 4690a57a2b..995b9e1808 100644
--- a/editor/editor_zoom_widget.h
+++ b/editor/editor_zoom_widget.h
@@ -57,6 +57,8 @@ public:
float get_zoom();
void set_zoom(float p_zoom);
void set_zoom_by_increments(int p_increment_count, bool p_integer_only = false);
+ // Sets the shortcut context for the zoom buttons. By default their context is this EditorZoomWidget control.
+ void set_shortcut_context(Node *p_node) const;
};
#endif // EDITOR_ZOOM_WIDGET_H