8258805: Japanese characters not entered by mouse click on Windows 10

Reviewed-by: aivanov
This commit is contained in:
Dmitry Markov 2021-01-22 19:21:10 +00:00
parent a8871776e6
commit 53fecba709

View File

@ -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
@ -360,6 +360,11 @@ final class WInputMethod extends InputMethodAdapter
}
isActive = false;
hasCompositionString = isCompositionStringAvailable(context);
// IME is going to be disabled commit the composition string
if (hasCompositionString) {
endComposition();
}
}
/**