Skip to content

Commit 283cd36

Browse files
committed
[iceshard] Fix missing translation for Home and End keys.
1 parent e8271b0 commit 283cd36

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

source/code/platforms/platform_linux/private/linux_sdl2_utils.cxx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@ namespace ice::platform::linux::sdl2
6565
case SDL_SCANCODE_MINUS: return KeyboardKey::Minus;
6666
case SDL_SCANCODE_PERIOD: return KeyboardKey::Period;
6767
case SDL_SCANCODE_SLASH: return KeyboardKey::Slash;
68+
case SDL_SCANCODE_HOME: return KeyboardKey::Home;
69+
case SDL_SCANCODE_END: return KeyboardKey::End;
6870

6971
case SDL_SCANCODE_SEMICOLON: return KeyboardKey::SemiColon;
7072
case SDL_SCANCODE_EQUALS: return KeyboardKey::Equals;

source/code/platforms/platform_win32/private/win32_sdl2_utils.cxx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@ namespace ice::platform::win32::sdl2
6565
case SDL_SCANCODE_MINUS: return KeyboardKey::Minus;
6666
case SDL_SCANCODE_PERIOD: return KeyboardKey::Period;
6767
case SDL_SCANCODE_SLASH: return KeyboardKey::Slash;
68+
case SDL_SCANCODE_HOME: return KeyboardKey::Home;
69+
case SDL_SCANCODE_END: return KeyboardKey::End;
6870

6971
case SDL_SCANCODE_SEMICOLON: return KeyboardKey::SemiColon;
7072
case SDL_SCANCODE_EQUALS: return KeyboardKey::Equals;

0 commit comments

Comments
 (0)