[Github-comments] [geany/geany] Unexpected behavior with IME (crashing, inserting characters) (#2760)

elextr notifications at xxxxx
Fri Mar 12 07:39:13 UTC 2021


@brownbat 

1) yes #1514 is merged. Otherwise you would not have a preference.

2) the line in EditModel.cxx is _initialising_ the value, thats why Geany never had to set a value until #1514 and someone wanting to change it

3) as noted on #1514 its not really been tested by anybody other than the proposer because none of us use IME, or at least anybody who tested it didn't report it working or not.

Scintilla documentation on that setting says:

"SCI_SETIMEINTERACTION(int imeInteraction)
SCI_GETIMEINTERACTION → int
When entering text in Chinese, Japanese, or Korean an Input Method Editor (IME) may be displayed. The IME may be an extra window appearing above Scintilla or may be displayed by Scintilla itself as text. On some platforms there is a choice between the two techniques. A windowed IME SC_IME_WINDOWED (0) may be more similar in appearance and behaviour to the IME in other applications. An inline IME SC_IME_INLINE (1) may work better with some Scintilla features such as rectangular and multiple selection.

The windowed behaviour can be chosen with SCI_SETIMEINTERACTION(SC_IME_WINDOWED) and the inline behaviour with SCI_SETIMEINTERACTION(SC_IME_INLINE). Scintilla may ignore this call in some cases. For example, the inline behaviour might only be supported for some languages.

When the inline IME mode is active, characters are added tentatively before being finalised and an SCN_CHARADDED notification (with characterSource set to SC_CHARACTERSOURCE_TENTATIVE_INPUT) is sent for each character."

which seems to suggest that there are times it is ignored.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/2760#issuecomment-797299240
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20210311/862faa90/attachment.htm>


More information about the Github-comments mailing list