From: Holger Schemel Date: Sun, 12 Jun 2016 12:39:35 +0000 (+0200) Subject: added easier accessible shortcuts for scaling up or zoom in on US keyboards X-Git-Tag: 4.0.0.0-rc3~13 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=b3965d5e36b4388795d646d6bca1764429defc88;p=rocksndiamonds.git added easier accessible shortcuts for scaling up or zoom in on US keyboards --- diff --git a/src/editor.c b/src/editor.c index a893b980..d104ae42 100644 --- a/src/editor.c +++ b/src/editor.c @@ -11995,7 +11995,8 @@ void HandleLevelEditorKeyInput(Key key) ClickOnGadget(level_editor_gadget[GADGET_ID_ZOOM], 3); else if (letter == '0' || key == KSYM_KP_0) ClickOnGadget(level_editor_gadget[GADGET_ID_ZOOM], 2); - else if (letter == '+' || key == KSYM_KP_Add) + else if (letter == '+' || key == KSYM_KP_Add || + letter == '=') // ("Shift-=" is "+" on US keyboards) ClickOnGadget(level_editor_gadget[GADGET_ID_ZOOM], 1); else if (key == KSYM_Return || key == KSYM_space || diff --git a/src/events.c b/src/events.c index bad68898..ab6dc8ca 100644 --- a/src/events.c +++ b/src/events.c @@ -1357,6 +1357,7 @@ void HandleKey(Key key, int key_status) if ((key == KSYM_minus || key == KSYM_plus || + key == KSYM_equal || // ("Shift-=" is "+" on US keyboards) key == KSYM_0) && ((GetKeyModState() & KMOD_Control) || (GetKeyModState() & KMOD_Alt) ||