Changeset 25416

Show
Ignore:
Timestamp:
05/10/08 07:38:57 (6 days ago)
Author:
korli
Message:
* 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.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • haiku/trunk/headers/os/interface/InterfaceDefs.h

    r24869 r25416  
    6363        B_PAGE_DOWN                     = 0x0c, 
    6464 
    65         B_FUNCTION_KEY          = 0x10 
     65        B_FUNCTION_KEY          = 0x10, 
     66         
     67        B_KATAKANA_HIRAGANA     = 0xf2, 
     68        B_ZENKAKU_HANKAKU       = 0xf3 
    6669}; 
    6770 
  • haiku/trunk/src/servers/input/InputServer.cpp

    r25327 r25416  
    15261526                                        fKeyInfo.key_states[KEY_Spacebar >> 3])); 
    15271527 
    1528                                 int8 byte; 
    1529                                 if ((fKeyInfo.modifiers & B_COMMAND_KEY) != 0 
    1530                                         && event->FindInt8("byte", &byte) == B_OK && byte == ' ') { 
     1528                                int8 byte = 0; 
     1529                                event->FindInt8("byte", &byte); 
     1530                                if ((fKeyInfo.modifiers & B_COMMAND_KEY) != 0  
     1531                                        && (byte == ' ' || static_cast<uint8>(byte) == B_ZENKAKU_HANKAKU)) { 
    15311532                                        SetNextMethod(!fKeyInfo.modifiers & B_SHIFT_KEY); 
    15321533