Skip to content

Commit

Permalink
Fix HangulMode key not working in Windows On-Screen Keyboard
Browse files Browse the repository at this point in the history
  • Loading branch information
Hoto-Cocoa authored and sokcuri committed Aug 29, 2019
1 parent 0e836e1 commit 7da1abd
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/main/java/kr/neko/sokcuri/naraechat/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,10 @@ public void proxyHangulSpecificKey(GuiScreenEvent.KeyboardKeyPressedEvent.Pre ev
glfwModifier = GLFW_MOD_ALT;
}

// 102 키보드 문제 수정. 한글/한자 키를 강재로 리매핑한다
if (keyCode == -1 && scanCode == 0x1F2 || keyCode == -1 && scanCode == 0x1F1) {
if (scanCode == 0x1F2) {
// 103 키보드 문제 수정. 한글(0x1F2)/한자(0x1F1) 키를 강재로 리매핑한다
// Windows 화상 키보드 한영키(0xF2) 반영
if (keyCode == -1 && scanCode == 0x1F2 || keyCode == -1 && scanCode == 0x1F1 || keyCode == -1 && scanCode == 0xF2) {
if (scanCode == 0x1F2 || scanCode == 0xF2) {
keyCode = GLFW_KEY_RIGHT_ALT;
scanCode = glfwGetKeyScancode(keyCode);
} else if (scanCode == 0x1F1) {
Expand Down

0 comments on commit 7da1abd

Please sign in to comment.