diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2022-08-10 16:31:57 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-10 16:31:57 +0200 |
commit | 11abffbf1282d457f966741f14aa5a5793f3c208 (patch) | |
tree | 24f4bf368cd2089a61a2579ecc5ac8c0d99bf553 /editor/code_editor.cpp | |
parent | 345dd9f0fbb6382eb3bac024c01d6b60f3165384 (diff) | |
parent | ccf088b40b080c6610b23cb3d9532d103cf8a644 (diff) | |
download | redot-engine-11abffbf1282d457f966741f14aa5a5793f3c208.tar.gz |
Merge pull request #64215 from Calinou/editor-allow-numpad-zoom-shortcuts
Diffstat (limited to 'editor/code_editor.cpp')
-rw-r--r-- | editor/code_editor.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/editor/code_editor.cpp b/editor/code_editor.cpp index b0eb384efc..9e72c8ec10 100644 --- a/editor/code_editor.cpp +++ b/editor/code_editor.cpp @@ -1869,7 +1869,8 @@ CodeTextEditor::CodeTextEditor() { code_complete_func = nullptr; ED_SHORTCUT("script_editor/zoom_in", TTR("Zoom In"), KeyModifierMask::CMD | Key::EQUAL); ED_SHORTCUT("script_editor/zoom_out", TTR("Zoom Out"), KeyModifierMask::CMD | Key::MINUS); - ED_SHORTCUT("script_editor/reset_zoom", TTR("Reset Zoom"), KeyModifierMask::CMD | Key::KEY_0); + ED_SHORTCUT_ARRAY("script_editor/reset_zoom", TTR("Reset Zoom"), + { int32_t(KeyModifierMask::CMD | Key::KEY_0), int32_t(KeyModifierMask::CMD | Key::KP_0) }); text_editor = memnew(CodeEdit); add_child(text_editor); |