1010
1111namespace Kbg . NppPluginNET . PluginInfrastructure
1212{
13- /// <summary>
14- /// Compatible with Windows NMHDR.
15- /// hwndFrom is really an environment specific window handle or pointer
16- /// but most clients of Scintilla.h do not have this type visible.
17- /// </summary>
18- [ StructLayout ( LayoutKind . Sequential ) ]
13+ /// <summary>
14+ /// Compatible with Windows NMHDR.
15+ /// hwndFrom is really an environment specific window handle or pointer
16+ /// but most clients of Scintilla.h do not have this type visible.
17+ /// </summary>
18+ [ StructLayout ( LayoutKind . Sequential ) ]
1919 public struct Sci_NotifyHeader
2020 {
2121 public IntPtr hwndFrom ; //! environment specific window handle/pointer
@@ -28,7 +28,7 @@ public struct SCNotification
2828 {
2929 public Sci_NotifyHeader nmhdr ;
3030 private int position ; /* SCN_STYLENEEDED, SCN_DOUBLECLICK, SCN_MODIFIED, SCN_MARGINCLICK, SCN_NEEDSHOWN, SCN_DWELLSTART, SCN_DWELLEND, SCN_CALLTIPCLICK, SCN_HOTSPOTCLICK, SCN_HOTSPOTDOUBLECLICK, SCN_HOTSPOTRELEASECLICK, SCN_INDICATORCLICK, SCN_INDICATORRELEASE, SCN_USERLISTSELECTION, SCN_AUTOCSELECTION */
31- public int ch ; /* SCN_CHARADDED, SCN_KEY, SCN_AUTOCCOMPLETE, SCN_AUTOCSELECTION, SCN_USERLISTSELECTION */
31+ public int character ; /* SCN_CHARADDED, SCN_KEY, SCN_AUTOCCOMPLETE, SCN_AUTOCSELECTION, SCN_USERLISTSELECTION */
3232 public int modifiers ; /* SCN_KEY, SCN_DOUBLECLICK, SCN_HOTSPOTCLICK, SCN_HOTSPOTDOUBLECLICK, SCN_HOTSPOTRELEASECLICK, SCN_INDICATORCLICK, SCN_INDICATORRELEASE */
3333 public int modificationType ; /* SCN_MODIFIED */
3434 public IntPtr text ; /* SCN_MODIFIED, SCN_USERLISTSELECTION, SCN_AUTOCSELECTION, SCN_URIDROPPED */
@@ -53,6 +53,12 @@ public struct SCNotification
5353 /// SCN_STYLENEEDED, SCN_DOUBLECLICK, SCN_MODIFIED, SCN_MARGINCLICK, SCN_NEEDSHOWN, SCN_DWELLSTART, SCN_DWELLEND, SCN_CALLTIPCLICK, SCN_HOTSPOTCLICK, SCN_HOTSPOTDOUBLECLICK, SCN_HOTSPOTRELEASECLICK, SCN_INDICATORCLICK, SCN_INDICATORRELEASE, SCN_USERLISTSELECTION, SCN_AUTOCSELECTION
5454 /// </summary>
5555 public Position Position { get { return new Position ( position ) ; } }
56+
57+ /// <summary>
58+ /// Character of the notification - eg keydown
59+ /// SCN_CHARADDED, SCN_KEY, SCN_AUTOCCOMPLETE, SCN_AUTOCSELECTION, SCN_USERLISTSELECTION
60+ /// </summary>
61+ public char Character { get { return ( char ) character ; } }
5662 }
5763
5864 [ Flags ]
0 commit comments