From f0871b87a4958253d09f48a6065e4dc3984573d9 Mon Sep 17 00:00:00 2001 From: yuyi Date: Wed, 5 Oct 2022 18:24:22 +0800 Subject: [PATCH] term: fix errors in input_windows.c.v (#15966) --- vlib/term/ui/input_windows.c.v | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/vlib/term/ui/input_windows.c.v b/vlib/term/ui/input_windows.c.v index db7c810878..b610c718c2 100644 --- a/vlib/term/ui/input_windows.c.v +++ b/vlib/term/ui/input_windows.c.v @@ -165,11 +165,11 @@ fn (mut ctx Context) parse_events() { C.VK_DOWN { KeyCode.down } C.VK_INSERT { KeyCode.insert } C.VK_DELETE { KeyCode.delete } - 65...90 { KeyCode(ch + 32) } // letters + 65...90 { unsafe { KeyCode(ch + 32) } } // letters 91...93 { KeyCode.null } // special keys - 96...105 { KeyCode(ch - 48) } // numpad numbers - 112...135 { KeyCode(ch + 178) } // f1 - f24 - else { KeyCode(ascii) } + 96...105 { unsafe { KeyCode(ch - 48) } } // numpad numbers + 112...135 { unsafe { KeyCode(ch + 178) } } // f1 - f24 + else { unsafe { KeyCode(ascii) } } } mut modifiers := Modifiers{}