Index: samplecode/GMSampleView.cpp |
diff --git a/samplecode/GMSampleView.cpp b/samplecode/GMSampleView.cpp |
index 80a6803148047cc848e37b3009c4bb94b2f02c38..5e48391787bdab8190d3c6af78905e0ec053928c 100644 |
--- a/samplecode/GMSampleView.cpp |
+++ b/samplecode/GMSampleView.cpp |
@@ -26,6 +26,15 @@ bool GMSampleView::onQuery(SkEvent* evt) { |
SampleCode::TitleR(evt, name.c_str()); |
return true; |
} |
+ |
+ SkUnichar uni; |
+ if (SampleCode::CharQ(*evt, &uni)) { |
+ if (fGM->handleKey(uni)) { |
+ this->inval(nullptr); |
+ return true; |
+ } |
+ } |
+ |
return this->INHERITED::onQuery(evt); |
} |