8191178: [macos] Problem with input of yen symbol

Reviewed-by: dmarkov, mhalder
This commit is contained in:
Prasanta Sadhukhan 2018-09-18 18:12:40 +05:30
parent d92c6042fe
commit 1b25f7242c

View File

@ -537,10 +537,14 @@ static BOOL shouldUsePressAndHold() {
}
-(BOOL) isCodePointInUnicodeBlockNeedingIMEvent: (unichar) codePoint {
if (((codePoint >= 0x3000) && (codePoint <= 0x303F)) ||
if ((codePoint == 0x0024) || (codePoint == 0x00A3) ||
(codePoint == 0x00A5) ||
((codePoint >= 0x20A3) && (codePoint <= 0x20BF)) ||
((codePoint >= 0x3000) && (codePoint <= 0x303F)) ||
((codePoint >= 0xFF00) && (codePoint <= 0xFFEF))) {
// Code point is in 'CJK Symbols and Punctuation' or
// 'Halfwidth and Fullwidth Forms' Unicode block.
// 'Halfwidth and Fullwidth Forms' Unicode block or
// currency symbols unicode
return YES;
}
return NO;