jacobslusser / ScintillaNET

A Windows Forms control, wrapper, and bindings for the Scintilla text editor.
MIT License
963 stars 243 forks source link

There's no way to assign the <Delete> key in ScintillaNET #399

Open Miki101 opened 6 years ago

Miki101 commented 6 years ago

Hi, After calling MyScintilla.ClearAllCmdKeys(); , I could not find a Command code to reassign the key.

the constant SCI_CLEAR (2180) is defined in both Scintilla.h and in your code. The only thing that I needed to do was to add this to Command.cs to make it work on this end.

    // --------------------------------------------------------------------
    /// <summary>
    /// Command equivalent to <see cref="Scintilla.Clear" />
    /// </summary>
    Clear = NativeMethods.SCI_CLEAR

Hopefully, this is of some use to you. :)

Warmest Regards...

jacobslusser commented 6 years ago

Thanks, we'll include this in the next release.