| 1322 | } |
| 1323 | |
| 1324 | static void InputWidget_DeleteKey(struct InputWidget* w) { |
| 1325 | if (w->text.length > 0 && w->caretPos != -1) { |
| 1326 | String_DeleteAt(&w->text, w->caretPos); |
| 1327 | if (w->caretPos >= w->text.length) { w->caretPos = -1; } |
| 1328 | InputWidget_UpdateText(w); |
| 1329 | } |
| 1330 | } |
| 1331 | |
| 1332 | static void InputWidget_LeftKey(struct InputWidget* w) { |
| 1333 | if (Input_IsActionPressed()) { |
no test coverage detected