app: use isARepeat method instead of ARepeat prop

The property was only introduced in 10.10, and doesn't offer us
anything more than what the method gives us.

Fixes golang/go#11827.

Change-Id: I5a9f9b068b9f18acc85a68a37dae11f19df686a1
Reviewed-on: https://go-review.googlesource.com/12552
Reviewed-by: Andrey Petrov <shazow@gmail.com>
Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
This commit is contained in:
David Crawshaw
2015-07-22 17:35:11 -04:00
parent 8c8ee830af
commit 2341c96d9d

View File

@ -189,7 +189,7 @@ uint64 threadID() {
uint32_t rune = (uint32_t)buf[0]<<0 | (uint32_t)buf[1]<<8 | (uint32_t)buf[2]<<16 | (uint32_t)buf[3]<<24;
uint8_t direction;
if (theEvent.ARepeat) {
if ([theEvent isARepeat]) {
direction = 0;
} else if (theEvent.type == NSKeyDown) {
direction = 1;