From 762a0876036bbecb90345e51ad7e98dfa7e03324 Mon Sep 17 00:00:00 2001 From: KIRIYAMA Takuya Date: Fri, 7 Nov 2025 14:31:08 +0900 Subject: [PATCH] 8258805: Japanese characters not entered by mouse click on Windows 10 --- jdk/src/windows/classes/sun/awt/windows/WInputMethod.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/jdk/src/windows/classes/sun/awt/windows/WInputMethod.java b/jdk/src/windows/classes/sun/awt/windows/WInputMethod.java index b54bf97d15..2a9663b5d4 100644 --- a/jdk/src/windows/classes/sun/awt/windows/WInputMethod.java +++ b/jdk/src/windows/classes/sun/awt/windows/WInputMethod.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2019, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1997, 2021, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -355,6 +355,11 @@ public void deactivate(boolean isTemporary) } isActive = false; hasCompositionString = isCompositionStringAvailable(context); + + // IME is going to be disabled commit the composition string + if (hasCompositionString) { + endComposition(); + } } /**