aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/Scintilla.h
diff options
context:
space:
mode:
authorZufu Liu <unknown>2019-06-30 08:34:46 +1000
committerZufu Liu <unknown>2019-06-30 08:34:46 +1000
commitd7e2afd1f88bf735b010461ff505470bfa468547 (patch)
tree0305fc8fd126909438c6da42cf90d53a3201b8c2 /include/Scintilla.h
parent24bff87107d89a09e724993e053e7151945596e8 (diff)
downloadscintilla-mirror-d7e2afd1f88bf735b010461ff505470bfa468547.tar.gz
Bug [#2038]. Source of input reported in SCN_CHARADDED.
This may be SC_CHARACTERSOURCE_DIRECT_INPUT, SC_CHARACTERSOURCE_TENTATIVE_INPUT, or SC_CHARACTERSOURCE_IME_RESULT.
Diffstat (limited to 'include/Scintilla.h')
-rw-r--r--include/Scintilla.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/Scintilla.h b/include/Scintilla.h
index c7db899d7..808ad9985 100644
--- a/include/Scintilla.h
+++ b/include/Scintilla.h
@@ -1091,6 +1091,9 @@ typedef sptr_t (*SciFnDirect)(sptr_t ptr, unsigned int iMessage, uptr_t wParam,
#define SC_AC_TAB 3
#define SC_AC_NEWLINE 4
#define SC_AC_COMMAND 5
+#define SC_CHARACTERSOURCE_DIRECT_INPUT 0
+#define SC_CHARACTERSOURCE_TENTATIVE_INPUT 1
+#define SC_CHARACTERSOURCE_IME_RESULT 2
#define SCN_STYLENEEDED 2000
#define SCN_CHARADDED 2001
#define SCN_SAVEPOINTREACHED 2002
@@ -1233,6 +1236,7 @@ struct SCNotification {
int updated; /* SCN_UPDATEUI */
int listCompletionMethod;
/* SCN_AUTOCSELECTION, SCN_AUTOCCOMPLETED, SCN_USERLISTSELECTION, */
+ int characterSource; /* SCN_CHARADDED */
};
#ifdef INCLUDE_DEPRECATED_FEATURES