Allow using numpad for zoom shortcuts in the 2D/code editors
This behavior is consistent with GIMP.
This commit is contained in:
parent
9e3b2561a4
commit
ccf088b40b
2 changed files with 32 additions and 12 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue