Merge pull request #22081 from akien-mga/canvasitem-zoom-equal

Set default CanvasItemEditor zoom shortcut to KEY_EQUAL
This commit is contained in:
Rémi Verschelde 2018-09-14 23:15:09 +02:00 committed by GitHub
commit 9b97c74f50
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4390,7 +4390,7 @@ CanvasItemEditor::CanvasItemEditor(EditorNode *p_editor) {
zoom_plus = memnew(ToolButton);
zoom_hb->add_child(zoom_plus);
zoom_plus->connect("pressed", this, "_button_zoom_plus");
zoom_plus->set_shortcut(ED_SHORTCUT("canvas_item_editor/zoom_plus", TTR("Zoom in"), KEY_MASK_CMD | KEY_PLUS));
zoom_plus->set_shortcut(ED_SHORTCUT("canvas_item_editor/zoom_plus", TTR("Zoom in"), KEY_MASK_CMD | KEY_EQUAL)); // Usually direct access key for PLUS
zoom_plus->set_focus_mode(FOCUS_NONE);
updating_scroll = false;