text patches: checkpoint

This commit is contained in:
Ryan Fleury committed 2026-07-27 14:47:31 -07:00
1 parent cd82268a07
commit bb85f6f692
22 files changed
+562 -565

No files matched your search

@@ -506,13 +506,17 @@ w32_wm_wnd_proc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
case WM_CHAR:
{
U32 character = wParam;
if(character >= 32 && character != 127)
if(character >= 10 && character != 127)
{
WM_Event *event = w32_wm_push_event(WM_EventKind_Text, window);
if(lParam & bit29)
{
event->modifiers |= WM_Modifier_Alt;
}
if(character == '\r')
{
character = '\n';
}
event->character = character;
}
}break;