Merge pull request #63432 from bruvzg/scr_zoom

This commit is contained in:
Rémi Verschelde 2022-07-25 15:01:06 +02:00 committed by GitHub
commit 20d7171e83
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -824,12 +824,15 @@ void CodeTextEditor::_text_editor_gui_input(const Ref<InputEvent> &p_event) {
if (k->is_pressed()) {
if (ED_IS_SHORTCUT("script_editor/zoom_in", p_event)) {
_zoom_in();
accept_event();
}
if (ED_IS_SHORTCUT("script_editor/zoom_out", p_event)) {
_zoom_out();
accept_event();
}
if (ED_IS_SHORTCUT("script_editor/reset_zoom", p_event)) {
_reset_zoom();
accept_event();
}
}
}