On Fri, 28 Jan 2022 09:38:35 GMT, Prasanta Sadhukhan <psadhuk...@openjdk.org> wrote:
> If we press " ´ " (on U.S. keyboard layout it is the [+] button just before > the [delete] button), and then press "s" , 2 "´" characters are entered in a > text field instead of "´s" with "Finish" keyboard layout. > This is because, although " ´ " is construed as "complex" char and inserted > properly the next "s" character is treated as non-complex character as it's > utf8Length is 1 and utf16Length is 2, so we need to explicitly make it a > "complex" char sequence if the code point is 0x73 ie "s" in Finnish layout > for it to be inserted properly. It seems we fail to detect accented symbols at least for “Finish” keyboard layout (other layouts might be affected too). I would expect that the function `keyDown()` will set `fProcessingKeystroke` flag to `NO` and then `insertText()` will do the rest but it does not work and requires investigation. ------------- PR: https://git.openjdk.java.net/jdk/pull/7262