{"action":"closed","issue":{"url":"https://api.github.com/repos/AlexLittlejohn/ALTextInputBar/issues/5","labels_url":"https://api.github.com/repos/AlexLittlejohn/ALTextInputBar/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/AlexLittlejohn/ALTextInputBar/issues/5/comments","events_url":"https://api.github.com/repos/AlexLittlejohn/ALTextInputBar/issues/5/events","html_url":"https://github.com/AlexLittlejohn/ALTextInputBar/issues/5","id":76843831,"number":5,"title":"Right Button Pressed","user":{"login":"Oniiichan","id":10688420,"avatar_url":"https://avatars.githubusercontent.com/u/10688420?v=3","gravatar_id":"","url":"https://api.github.com/users/Oniiichan","html_url":"https://github.com/Oniiichan","followers_url":"https://api.github.com/users/Oniiichan/followers","following_url":"https://api.github.com/users/Oniiichan/following{/other_user}","gists_url":"https://api.github.com/users/Oniiichan/gists{/gist_id}","starred_url":"https://api.github.com/users/Oniiichan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Oniiichan/subscriptions","organizations_url":"https://api.github.com/users/Oniiichan/orgs","repos_url":"https://api.github.com/users/Oniiichan/repos","events_url":"https://api.github.com/users/Oniiichan/events{/privacy}","received_events_url":"https://api.github.com/users/Oniiichan/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-15T20:16:16Z","updated_at":"2015-05-18T08:49:20Z","closed_at":"2015-05-18T08:49:20Z","body":"Would you mind specifying which delegate to use to change the return button to a \"send\" button that has an action instead of adding a new line.  The following does not get called when pressing return:\r\n\r\n    func textViewShouldReturn(textView: ALTextView) -> Bool {\r\n            println(\"000\")\r\n            self.view.endEditing(true);\r\n            textInputBar.textView.resignFirstResponder()\r\n            return false\r\n    }\r\n\r\nAlso, what is the function to use to specify what to do when the user presses the right button?"}}