X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fbuttons.c;h=88ff994e07ae633a0ff980c11607358bfed95d06;hb=228a5718ede5ee00512ed2e333b3cee47baa124c;hp=c6996e714c7d4191d702aad148dafcd058ed664f;hpb=b9c7e4a42762c8526702726f1404d3e75dbc29f5;p=rocksndiamonds.git diff --git a/src/buttons.c b/src/buttons.c index c6996e71..88ff994e 100644 --- a/src/buttons.c +++ b/src/buttons.c @@ -1307,30 +1307,30 @@ void HandleGadgetsKeyInput(Key key) gi->text.cursor_position++; DrawGadget(gi, DG_PRESSED, DG_DIRECT); } - else if (key == KEY_Left && cursor_pos > 0) + else if (key == KSYM_Left && cursor_pos > 0) { gi->text.cursor_position--; DrawGadget(gi, DG_PRESSED, DG_DIRECT); } - else if (key == KEY_Right && cursor_pos < text_length) + else if (key == KSYM_Right && cursor_pos < text_length) { gi->text.cursor_position++; DrawGadget(gi, DG_PRESSED, DG_DIRECT); } - else if (key == KEY_BackSpace && cursor_pos > 0) + else if (key == KSYM_BackSpace && cursor_pos > 0) { strcpy(text, gi->text.value); strcpy(&gi->text.value[cursor_pos - 1], &text[cursor_pos]); gi->text.cursor_position--; DrawGadget(gi, DG_PRESSED, DG_DIRECT); } - else if (key == KEY_Delete && cursor_pos < text_length) + else if (key == KSYM_Delete && cursor_pos < text_length) { strcpy(text, gi->text.value); strcpy(&gi->text.value[cursor_pos], &text[cursor_pos + 1]); DrawGadget(gi, DG_PRESSED, DG_DIRECT); } - else if (key == KEY_Return) + else if (key == KSYM_Return) { CheckRangeOfNumericInputGadget(gi); DrawGadget(gi, DG_UNPRESSED, DG_DIRECT);