When the keyboard focus changes between nodes, the Scene class will call impl_enableInputMethodEvents(boolean). The argument will be true for text input controls and false for most other nodes. The effect of this is to control whether input method events are forwarded to the controls, allowing them to position the IM composition window and to place the caret within a composition string.
However, regardless of whether the argument is true or false, the platform will still show a composition window when typing. This prevents fixing RT-23883 which needs to stop clear-text from showing when typing in a PasswordField. I have tested this on Windows 7 and compared native controls with FX controls. See my comment in RT-23883. The issue probably exists on Mac OS also, judging from the code, while Gtk seems to be doing the right thing in calling XSetICFocus/XUnsetICFocus.