From b037500155720ae322f27feafb715da89fe63e95 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20A=C3=9Fmus?= Date: Sun, 3 May 2009 08:32:17 +0000 Subject: [PATCH] Patch by Shinta: The key code was misnamed. Thanks a lot! git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30599 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- headers/os/interface/InterfaceDefs.h | 3 ++- src/servers/input/InputServer.cpp | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/headers/os/interface/InterfaceDefs.h b/headers/os/interface/InterfaceDefs.h index f09e78c86b..162fc00740 100644 --- a/headers/os/interface/InterfaceDefs.h +++ b/headers/os/interface/InterfaceDefs.h @@ -64,8 +64,9 @@ enum { B_FUNCTION_KEY = 0x10, + // for Japanese keyboards B_KATAKANA_HIRAGANA = 0xf2, - B_ZENKAKU_HANKAKU = 0xf3 + B_HANKAKU_ZENKAKU = 0xf3 }; enum { diff --git a/src/servers/input/InputServer.cpp b/src/servers/input/InputServer.cpp index 348a503775..8c791dee70 100644 --- a/src/servers/input/InputServer.cpp +++ b/src/servers/input/InputServer.cpp @@ -1504,7 +1504,7 @@ InputServer::_UpdateMouseAndKeys(EventList& events) byte = 0; if (((fKeyInfo.modifiers & B_COMMAND_KEY) != 0 && byte == ' ') - || byte == B_ZENKAKU_HANKAKU) { + || byte == B_HANKAKU_ZENKAKU) { SetNextMethod(!(fKeyInfo.modifiers & B_SHIFT_KEY)); // this event isn't sent to the user