{"action":"closed","issue":{"url":"https://api.github.com/repos/aliceatlas/daybreak/issues/1","labels_url":"https://api.github.com/repos/aliceatlas/daybreak/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/aliceatlas/daybreak/issues/1/comments","events_url":"https://api.github.com/repos/aliceatlas/daybreak/issues/1/events","html_url":"https://github.com/aliceatlas/daybreak/issues/1","id":54027172,"number":1,"title":"I don't think this works","user":{"login":"btipling","id":249641,"avatar_url":"https://avatars.githubusercontent.com/u/249641?v=3","gravatar_id":"","url":"https://api.github.com/users/btipling","html_url":"https://github.com/btipling","followers_url":"https://api.github.com/users/btipling/followers","following_url":"https://api.github.com/users/btipling/following{/other_user}","gists_url":"https://api.github.com/users/btipling/gists{/gist_id}","starred_url":"https://api.github.com/users/btipling/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/btipling/subscriptions","organizations_url":"https://api.github.com/users/btipling/orgs","repos_url":"https://api.github.com/users/btipling/repos","events_url":"https://api.github.com/users/btipling/events{/privacy}","received_events_url":"https://api.github.com/users/btipling/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-12T07:36:22Z","updated_at":"2015-01-12T07:41:27Z","closed_at":"2015-01-12T07:41:27Z","body":"https://github.com/aliceatlas/daybreak/blob/8639d4180d6ea81886837872cb28c76b732d98ec/Classes/SBBookmarkListView.swift#L888-L893\r\n\r\nhttps://github.com/aliceatlas/daybreak/blob/8639d4180d6ea81886837872cb28c76b732d98ec/Classes/SBAboutView.swift#L173-L174\r\n\r\nYou keep comparing Swift string characters to `NSEnterCharacter`, but `NSEnterCharacter` is `3` and carriage return is `13` in unicode:\r\n\r\nhttps://en.wikipedia.org/wiki/Basic_Latin_(Unicode_block)\r\n\r\nDid you check if that actually works?\r\n\r\nI am asking because I was looking to do this myself but this is the only code on the whole internet that does uses Swift to check against someone pressing enter and I've tried what you're doing and it doesn't work. Just checking to see if it works for you, maybe you're doing something different?"}}