* added B_KATAKANA_HIRAGANA and B_ZENKAKU_HANKAKU (used in Japanese keymap)
* Patch by Shinta: switch between input methods are now not only done with Alt+Space but Alt+Zenkaku/Hankaku. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25416 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
310930fd9e
commit
ba64d8928a
@ -62,7 +62,10 @@ enum {
|
||||
B_PAGE_UP = 0x0b,
|
||||
B_PAGE_DOWN = 0x0c,
|
||||
|
||||
B_FUNCTION_KEY = 0x10
|
||||
B_FUNCTION_KEY = 0x10,
|
||||
|
||||
B_KATAKANA_HIRAGANA = 0xf2,
|
||||
B_ZENKAKU_HANKAKU = 0xf3
|
||||
};
|
||||
|
||||
enum {
|
||||
|
@ -1525,9 +1525,10 @@ InputServer::_SanitizeEvents(EventList& events)
|
||||
PRINT(("SanitizeEvents: %lx, %lx\n", fKeyInfo.modifiers,
|
||||
fKeyInfo.key_states[KEY_Spacebar >> 3]));
|
||||
|
||||
int8 byte;
|
||||
if ((fKeyInfo.modifiers & B_COMMAND_KEY) != 0
|
||||
&& event->FindInt8("byte", &byte) == B_OK && byte == ' ') {
|
||||
int8 byte = 0;
|
||||
event->FindInt8("byte", &byte);
|
||||
if ((fKeyInfo.modifiers & B_COMMAND_KEY) != 0
|
||||
&& (byte == ' ' || static_cast<uint8>(byte) == B_ZENKAKU_HANKAKU)) {
|
||||
SetNextMethod(!fKeyInfo.modifiers & B_SHIFT_KEY);
|
||||
|
||||
// this event isn't sent to the user
|
||||
|
Loading…
Reference in New Issue
Block a user