Or you could try "\\E" Thanks and regards, Muthu
> On 3 Nov 2017, at 12:01 AM, C. Keith Ray via swift-users > <[email protected]> wrote: > > try "\u{1b}" > > -- > C. Keith Ray > Senior Software Engineer / Trainer / Agile Coach > * http://www.thirdfoundationsw.com/keith_ray_resume_2014_long.pdf > <http://www.thirdfoundationsw.com/keith_ray_resume_2014_long.pdf> > > > >> On Nov 2, 2017, at 8:39 AM, 李某某 via swift-users <[email protected] >> <mailto:[email protected]>> wrote: >> >> With Objective-C I can simple make it. >> [button setKeyEquivalent:"\E"]; >> >> However swift doesn’t allow me to do that. >> button.keyEquivalent = "\E" >> Then I got "Invalid escape sequence in literal". >> >> Is there any solution? >> _______________________________________________ >> swift-users mailing list >> [email protected] <mailto:[email protected]> >> https://lists.swift.org/mailman/listinfo/swift-users > > _______________________________________________ > swift-users mailing list > [email protected] > https://lists.swift.org/mailman/listinfo/swift-users
_______________________________________________ swift-users mailing list [email protected] https://lists.swift.org/mailman/listinfo/swift-users
