changeset 51927:c88fd713b51c

8191178: [macos] Problem with input of yen symbol Reviewed-by: dmarkov, mhalder
author psadhukhan
date Tue, 18 Sep 2018 18:12:40 +0530
parents e06054185a18
children d96a607e9594
files src/java.desktop/macosx/native/libawt_lwawt/awt/AWTView.m
diffstat 1 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/java.desktop/macosx/native/libawt_lwawt/awt/AWTView.m	Mon Sep 17 09:36:33 2018 -0700
+++ b/src/java.desktop/macosx/native/libawt_lwawt/awt/AWTView.m	Tue Sep 18 18:12:40 2018 +0530
@@ -537,10 +537,14 @@
 }
 
 -(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;