Sets the state of the flag that determines whether the candidates window dismisses automatically.
- macOS 10.5+
YESto have the candidates window dismiss automatically; otherwise
By default, if the user presses the Return or Enter keys, the candidates are dismissed and a
candidate message is sent to the input controller. You can call the
set method, passing
NO as the
flag parameter to change the default dismissal behavior. The input controller still receives a
When you set the flag to
NO, an input method processes text input while dynamically updating the content of the candidates as the user inputs text. When a session deactivates, candidate window is hidden regardless of the state of the flag.