There was an error while loading. Please reload this page.
2 parents 7fc101f + 7445253 commit d5e06b9Copy full SHA for d5e06b9
1 file changed
Source/Engine/Mandarin/Mandarin.h
@@ -381,9 +381,9 @@ class BopomofoReadingBuffer {
381
382
void setKeyboardLayout(const BopomofoKeyboardLayout* layout) {
383
layout_ = layout;
384
+ pinyin_mode_ = layout == BopomofoKeyboardLayout::HanyuPinyinLayout();
385
- if (layout == BopomofoKeyboardLayout::HanyuPinyinLayout()) {
386
- pinyin_mode_ = true;
+ if (pinyin_mode_) {
387
pinyin_sequence_ = "";
388
}
389
0 commit comments