feat: switch text to UTF-8; add Unicode key events, dead keys & Czech layout; fix numpad navigation; add NumLock support

This commit is contained in:
daniel committed 2026-10-03 10:11:49 +02:00
1 parent 32660ddd1a
commit 2aa6360b3d
101 files changed
+3733 -1639

No files matched your search

+2 -2
View File
@@ -480,13 +480,13 @@ void handle_print_key(const montauk::abi::KeyEvent& key) {
g_print.error[0] = '\0';
return;
}
if ((key.scancode == 0x48 || key.scancode == 0x4B) && g_print.printer_count > 0) {
if ((montauk::nav_scancode(key) == 0x48 || montauk::nav_scancode(key) == 0x4B) && g_print.printer_count > 0) {
if (g_print.selected_printer > 0) g_print.selected_printer--;
else g_print.selected_printer = 0;
g_print.error[0] = '\0';
return;
}
if ((key.scancode == 0x50 || key.scancode == 0x4D) && g_print.printer_count > 0) {
if ((montauk::nav_scancode(key) == 0x50 || montauk::nav_scancode(key) == 0x4D) && g_print.printer_count > 0) {
if (g_print.selected_printer < g_print.printer_count - 1) g_print.selected_printer++;
else g_print.selected_printer = g_print.printer_count - 1;
g_print.error[0] = '\0';