I've got working code in objective c class which is like follows :
closeButton.keyEquivalent = @"\e";
This does not work in swift, as it says "Invalid escape sequence in literal." I've tried to use the following code:
closeButton.keyEquivalent = "\u{53}"
But also no luck. Any ideas ?