mirror of
https://github.com/godotengine/godot.git
synced 2024-11-27 09:16:35 +08:00
Set default CanvasItemEditor zoom shortcut to KEY_EQUAL
At least on en_US QWERTY (and various QWERTY-derived variants) and fr_FR AZERTY, "+" is an indirect key obtained by pressing "Shift" + "=", so using "=" in the binding makes it easier to access. It doesn't work this way on other layouts like de_DE QWERTZ though, but since 'script_editor/zoom_in' also uses KEY_EQUAL, setting the same for consistency. Fixes #22067.
This commit is contained in:
parent
1eed12f6d8
commit
d934cbcbc9
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user