aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/utils
diff options
context:
space:
mode:
authorGravatar yangsu@google.com <yangsu@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-08-30 15:27:57 +0000
committerGravatar yangsu@google.com <yangsu@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-08-30 15:27:57 +0000
commit849ad5af851fc5bfe75e76cdd0bac44e5f9ec6dd (patch)
tree66c7a13489f9658b97bc18f0ad50f7cfeb3e70a7 /src/utils
parentdd5f7442f65813c1023a59c3380f4446583ccd5d (diff)
Fixed key handling code in Mac SampleApp
git-svn-id: http://skia.googlecode.com/svn/trunk@2192 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/mac/SkNSView.mm4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/utils/mac/SkNSView.mm b/src/utils/mac/SkNSView.mm
index 5d1ec3a60b..a21a4bb56e 100644
--- a/src/utils/mac/SkNSView.mm
+++ b/src/utils/mac/SkNSView.mm
@@ -156,7 +156,7 @@ static SkKey raw2key(UInt32 raw)
}
- (void)keyDown:(NSEvent *)event {
- if (NULL != fWind)
+ if (NULL == fWind)
return;
SkKey key = raw2key([event keyCode]);
@@ -169,7 +169,7 @@ static SkKey raw2key(UInt32 raw)
}
- (void)keyUp:(NSEvent *)event {
- if (NULL != fWind)
+ if (NULL == fWind)
return;
SkKey key = raw2key([event keyCode]);