Skip to content

Commit 6a3f7bb

Browse files
Takuya Kiriyamagnu-andrew
authored andcommitted
8258805: Japanese characters not entered by mouse click on Windows 10
Reviewed-by: andrew Backport-of: 53fecba709ed3e748d36e150d950bfae79ab48b1
1 parent 7cca626 commit 6a3f7bb

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

jdk/src/windows/classes/sun/awt/windows/WInputMethod.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 1997, 2019, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 1997, 2021, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -355,6 +355,11 @@ public void deactivate(boolean isTemporary)
355355
}
356356
isActive = false;
357357
hasCompositionString = isCompositionStringAvailable(context);
358+
359+
// IME is going to be disabled commit the composition string
360+
if (hasCompositionString) {
361+
endComposition();
362+
}
358363
}
359364

360365
/**

0 commit comments

Comments
 (0)