Fine-tunes tooltip UI.
This commit is contained in:
parent
366453820d
commit
a7e38b5b2d
|
@ -336,6 +336,8 @@ static double FindHighestScore(const vector<NodeAnchor>& nodes, double epsilon)
|
||||||
gCurrentCandidateController.delegate = nil;
|
gCurrentCandidateController.delegate = nil;
|
||||||
gCurrentCandidateController.visible = NO;
|
gCurrentCandidateController.visible = NO;
|
||||||
[_candidates removeAllObjects];
|
[_candidates removeAllObjects];
|
||||||
|
|
||||||
|
[self _hideTooltip];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)setValue:(id)value forTag:(long)tag client:(id)sender
|
- (void)setValue:(id)value forTag:(long)tag client:(id)sender
|
||||||
|
@ -411,6 +413,7 @@ static double FindHighestScore(const vector<NodeAnchor>& nodes, double epsilon)
|
||||||
[_composingBuffer setString:@""];
|
[_composingBuffer setString:@""];
|
||||||
gCurrentCandidateController.visible = NO;
|
gCurrentCandidateController.visible = NO;
|
||||||
[_candidates removeAllObjects];
|
[_candidates removeAllObjects];
|
||||||
|
[self _hideTooltip];
|
||||||
}
|
}
|
||||||
|
|
||||||
NS_INLINE size_t min(size_t a, size_t b) { return a < b ? a : b; }
|
NS_INLINE size_t min(size_t a, size_t b) { return a < b ? a : b; }
|
||||||
|
|
|
@ -64,3 +64,7 @@
|
||||||
"Edit Excluded Phrases" = "Edit Excluded Phrases";
|
"Edit Excluded Phrases" = "Edit Excluded Phrases";
|
||||||
|
|
||||||
"Use Half-Width Punctuations" = "Use Half-Width Punctuations";
|
"Use Half-Width Punctuations" = "Use Half-Width Punctuations";
|
||||||
|
|
||||||
|
"You are now selecting \"%@\". You can add a phrase with two or more characters." = "You are now selecting \"%@\". You can add a phrase with two or more characters.";
|
||||||
|
|
||||||
|
"You are now selecting \"%@\". Press enter to add a new phrase." = "You are now selecting \"%@\". Press enter to add a new phrase.";
|
||||||
|
|
|
@ -65,3 +65,6 @@
|
||||||
|
|
||||||
"Use Half-Width Punctuations" = "使用半型標點符號";
|
"Use Half-Width Punctuations" = "使用半型標點符號";
|
||||||
|
|
||||||
|
"You are now selecting \"%@\". You can add a phrase with two or more characters." = "您目前選擇了 \"%@\"。請選擇兩個字以上,才能加入使用者詞彙。";
|
||||||
|
|
||||||
|
"You are now selecting \"%@\". Press enter to add a new phrase." = "您目前選擇了 \"%@\"。按下 Enter 就可以加入到使用者詞彙中。";
|
||||||
|
|
Loading…
Reference in New Issue