Skip to content

Commit

Permalink
한자 입력 시 현재 입력중인 글자 대신 후보가 보이는 문제 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
youknowone committed May 25, 2014
1 parent 0494425 commit c4031af
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions GureumKIM/HangulComposer.m
Expand Up @@ -234,9 +234,6 @@ - (void)updateHanjaCandidates {
self.hanjaCandidates = nil;
} else {
self.hanjaCandidates = [self.hanjaTable hanjasByPrefixMatching:self.composedString];
if (![self.composedString isEqualToString:self.hanjaCandidates.key]) {
self.hanjaCandidates = nil;
}
}
dlog(DEBUG_HANJACOMPOSER, @"HanjaComposer -updateHanjaCandidates showing: %d", self.hanjaCandidates != nil);
}
Expand Down Expand Up @@ -283,12 +280,13 @@ - (void)candidateSelected:(NSAttributedString *)candidateString {
}

- (void)candidateSelectionChanged:(NSAttributedString *)candidateString {
if (candidateString.length == 0) {
self.composedString = self.originalString;
} else {
NSString *value = [[candidateString string] componentsSeparatedByString:@":"][0];
self.composedString = value;
}
// TODO: 설정 추가
// if (candidateString.length == 0) {
// self.composedString = self.originalString;
// } else {
// NSString *value = [[candidateString string] componentsSeparatedByString:@":"][0];
// self.composedString = value;
// }
}

- (HGHanjaTable *)hanjaTable {
Expand Down

0 comments on commit c4031af

Please sign in to comment.