diff --git a/Libraries/LibKeyboard/CharacterMap.cpp b/Libraries/LibKeyboard/CharacterMap.cpp index b5e0f4ee25..9cd22eb053 100644 --- a/Libraries/LibKeyboard/CharacterMap.cpp +++ b/Libraries/LibKeyboard/CharacterMap.cpp @@ -82,6 +82,10 @@ u32 CharacterMap::get_char(KeyEvent event) if (event.e0_prefix && event.key == Key_Slash) { // If Key_Slash (scancode = 0x35) mapped to other form "/", we fix num pad key of "/" with this case. code_point = '/'; + } else if (event.e0_prefix) { + // Except for `keypad-/`, all e0 scan codes are not actually characters. i.e., `keypad-0` and + // `Insert` have the same scancode except for the prefix, but insert should not have a code_point. + code_point = 0; } return code_point;