あたらしものずきっ!

試してみたものとか、遊んでみたものを色々記してみます。

はしりがき

/trunk/indra/newview/llChatbar.cpp

// virtual
BOOL LLChatBar::handleKeyHere( KEY key, MASK mask )
{
        BOOL handled = FALSE;
	
        // ALT-RETURN is reserved for windowed/fullscreen toggle
        if( KEY_RETURN == key )
        {
                if (mask == MASK_CONTROL)
                {
                        // shout
                        sendChat(CHAT_TYPE_SHOUT);
                        handled = TRUE;
                }
          else if (mask == MASK_NONE)
                {
                        // say
                        sendChat( CHAT_TYPE_NORMAL );
                        handled = TRUE;
                }
          else if (mask == MASK_ほげほげ)
                {
                        // whisper
                        sendChat( CHAT_TYPE_WHISPER );
                        handled = TRUE;
                }
        }
        // only do this in main chatbar
        else if ( KEY_ESCAPE == key && gChatBar == this)
        {
                stopChat();

                handled = TRUE;
        }

        return handled;
}