diff options
author | Sergey Semushin <predelnik@gmail.com> | 2021-01-06 19:27:57 +0300 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-01-06 19:20:18 +0100 |
commit | 277fc41f476a915c67a4b445a8ac680b1e625dd0 (patch) | |
tree | 8bd5d15992deb6b35ac904a9d2bdf98a13ee93e6 /Libraries/LibKeyboard/CharacterMap.cpp | |
parent | 335221d830d158620fd8212ef48281e488169d67 (diff) | |
download | serenity-277fc41f476a915c67a4b445a8ac680b1e625dd0.zip |
LibKeyboard: don't null codepoint for numpad return key
Diffstat (limited to 'Libraries/LibKeyboard/CharacterMap.cpp')
-rw-r--r-- | Libraries/LibKeyboard/CharacterMap.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Libraries/LibKeyboard/CharacterMap.cpp b/Libraries/LibKeyboard/CharacterMap.cpp index ceb4867c99..9d5b186383 100644 --- a/Libraries/LibKeyboard/CharacterMap.cpp +++ b/Libraries/LibKeyboard/CharacterMap.cpp @@ -84,8 +84,8 @@ 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 + } else if (event.e0_prefix && event.key != Key_Return) { + // Except for `keypad-/` and 'keypad-return', 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; } |