diff options
author | Mitya Selivanov <automainint@guattari.tech> | 2025-01-08 02:18:43 +0100 |
---|---|---|
committer | Mitya Selivanov <automainint@guattari.tech> | 2025-01-08 02:18:43 +0100 |
commit | 917f5beee05a994852949b880ea47d7fab6f8cca (patch) | |
tree | 8f55c01abe71626b79dc96126f914bdf0f12163d /examples | |
parent | 91646cbafee3ff67baff52499529ac9077675239 (diff) | |
download | reduced_system_layer-917f5beee05a994852949b880ea47d7fab6f8cca.zip |
Impl clipboard
Diffstat (limited to 'examples')
-rwxr-xr-x | examples/ui.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/ui.c b/examples/ui.c index d595617..79bdd70 100755 --- a/examples/ui.c +++ b/examples/ui.c @@ -87,7 +87,7 @@ void update_and_render_frame(void) { for (i64 i = 0; i < platform.input_size; ++i) if (platform.input[i].ctrl) switch (platform.input[i].key) { - case 'v': { + case KEY_V: { if (selection != 0) { i64 i0 = selection < 0 ? cursor + selection : cursor; i64 i1 = selection < 0 ? cursor : cursor + selection; @@ -112,7 +112,7 @@ void update_and_render_frame(void) { } } break; - case 'x': { + case KEY_X: { i64 len = 0; static c8 buf[1024]; @@ -131,7 +131,7 @@ void update_and_render_frame(void) { text_len -= i1 - i0; } break; - case 'c': { + case KEY_C: { i64 len = 0; static c8 buf[1024]; |