I'm working with Swift using Xcode 6.4.
Whenever enter/return
key is pressed (also occurs on press of tab key) the code below gets duplicated.
I've tried by deleting duplicated code, adjusting space/tabs but none worked.
Why is this happening? What's the fix?
Screenshot 1 is when I first time encountered this problem. Screenshot 2 is error occurred the next day.