From: Holger Schemel Date: Sun, 12 Jun 2016 12:27:45 +0000 (+0200) Subject: added gadget key for editor zoom button handling (functionally not needed) X-Git-Tag: 4.0.0.0-rc3~14 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=1e942e0a60975fe1d8bbf6c2149cb772600d56f1;p=rocksndiamonds.git added gadget key for editor zoom button handling (functionally not needed) --- diff --git a/src/editor.c b/src/editor.c index 85859907..a893b980 100644 --- a/src/editor.c +++ b/src/editor.c @@ -11991,11 +11991,11 @@ void HandleLevelEditorKeyInput(Key key) ClickOnGadget(level_editor_gadget[GADGET_ID_SINGLE_ITEMS], button); else if (letter == 'U') ClickOnGadget(level_editor_gadget[GADGET_ID_UNDO], 3); - else if (key == KSYM_KP_Subtract || letter == '-') + else if (letter == '-' || key == KSYM_KP_Subtract) ClickOnGadget(level_editor_gadget[GADGET_ID_ZOOM], 3); - else if (key == KSYM_KP_0 || letter == '0') + else if (letter == '0' || key == KSYM_KP_0) ClickOnGadget(level_editor_gadget[GADGET_ID_ZOOM], 2); - else if (key == KSYM_KP_Add) + else if (letter == '+' || key == KSYM_KP_Add) ClickOnGadget(level_editor_gadget[GADGET_ID_ZOOM], 1); else if (key == KSYM_Return || key == KSYM_space ||