summaryrefslogtreecommitdiff
path: root/examples/ui.c
diff options
context:
space:
mode:
authorMitya Selivanov <automainint@guattari.tech>2025-01-07 00:16:22 +0100
committerMitya Selivanov <automainint@guattari.tech>2025-01-07 00:16:22 +0100
commit91646cbafee3ff67baff52499529ac9077675239 (patch)
treeef450666dc81f014025425264cf38b2bac2ab7c3 /examples/ui.c
parent8572d0ade4d8447ba68c4f6e3a7e791a8b38ad22 (diff)
downloadreduced_system_layer-91646cbafee3ff67baff52499529ac9077675239.zip
Fix clipboard; TODO keys
Diffstat (limited to 'examples/ui.c')
-rwxr-xr-xexamples/ui.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/examples/ui.c b/examples/ui.c
index 1301a6c..d595617 100755
--- a/examples/ui.c
+++ b/examples/ui.c
@@ -172,7 +172,7 @@ void update_and_render_frame(void) {
++cursor;
break;
- case '\b':
+ case KEY_BACKSPACE:
if (selection != 0) {
i64 i0 = selection < 0 ? cursor + selection : cursor;
i64 i1 = selection < 0 ? cursor : cursor + selection;
@@ -205,9 +205,8 @@ void update_and_render_frame(void) {
}
break;
- case '\n':
- case '\r':
- case '\t':
+ case KEY_ENTER:
+ case KEY_TAB:
platform.input[i].c = platform.input[i].key;
// fallthrough