Fix : Send chat on press Return key

master
Thomas Abot 8 years ago
parent 32ff450355
commit 23e41332dc
  1. 2
      Assets/scripts/TchatAnim.cs

@ -97,7 +97,7 @@ public class TchatAnim : MonoBehaviour {
//En cas de validation du message
if(Input.GetKeyDown("space") && myfield.isFocused) {
if(Input.GetKeyDown("return") && myfield.isFocused) {
chatWindow.writeMessage("perceval", myfield.text); //inscription du message dans la fenetre de chat
createScrollList.writeMessage("perceval", myfield.text); //inscription du message dans les logs.

Loading…
Cancel
Save