Skip to content

Commit

Permalink
Merge pull request #63432 from bruvzg/scr_zoom
Browse files Browse the repository at this point in the history
  • Loading branch information
akien-mga authored Jul 25, 2022
2 parents 49b0aa9 + f743c6a commit 20d7171
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions editor/code_editor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}
}
Expand Down

0 comments on commit 20d7171

Please sign in to comment.