From 4da296a135533719b10018f2990dec3dcf3b0f11 Mon Sep 17 00:00:00 2001 From: ionut Date: Fri, 1 May 2026 02:37:13 +0300 Subject: [PATCH] bugfix and bugnotes --- TODO.md | 2 ++ src/main.c | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/TODO.md b/TODO.md index c5e5102..b1e38c2 100644 --- a/TODO.md +++ b/TODO.md @@ -1,5 +1,7 @@ # For MVP functionality +- fix coloring issue in UlOS 2 beta 5 (and in OpenOS `dmesg`, it appears color-mapper is wrong) +- fix FrostOS crash due to empty syscalls table (unsure what is happening) - make `computer` component use callbacks - make a lot of stuff which likely will need to be indirect actually be indirect (modem comms, computer funcs) - make beeps, power, etc. be callbacks on one shared local state (computer environment) diff --git a/src/main.c b/src/main.c index e7d0a20..05b4552 100644 --- a/src/main.c +++ b/src/main.c @@ -604,6 +604,12 @@ int main(int argc, char **argv) { if(keycode == KEY_ENTER) unicode = '\r'; if(keycode == KEY_BACKSPACE) unicode = '\b'; if(keycode == KEY_TAB) unicode = '\t'; + + bool isCtrlPressed = keybuf[KEY_LEFT_CONTROL].key != 0; + if(isCtrlPressed) { + if(keycode == KEY_C) unicode = 3; + if(keycode == KEY_D) unicode = 4; + } } nn_pushKeyDown(c, "mainKB", unicode, keycode_to_oc(keycode), player);