BOOL LLFloaterLuaConsole::postBuild() { childSetAction("Send", onClickSend, this); childSetAction("Clear", onClickClear, this); childSetAction("Abort", onClickAbort, this); childSetAction("Reset", onClickReset, this); //childDisable("Send"); LLButton * sendp = getChild<LLButton>("Send"); LLPanel * luap = getChild<LLPanel>("lua_panel"); if(sendp && luap) { luap->setDefaultBtn(sendp); } LLLineEditor * editorp = getChild<LLLineEditor>("Lua Editor", TRUE); if(editorp) { editorp->setCommitOnFocusLost(FALSE); editorp->setRevertOnEsc(FALSE); editorp->setEnableLineHistory(TRUE); editorp->setFocusReceivedCallback( &onInputEditorGainFocus, this ); } getChild<LLViewerTextEditor>("Lua Output Editor",TRUE); return TRUE; }