ScintillaNET icon indicating copy to clipboard operation
ScintillaNET copied to clipboard

Ignoring Tab/Esc/Enter-Key

Open RaeuberHotzenplotz opened this issue 9 years ago • 2 comments

When having the Scintilla component embedded in a (modal) form, it would be nice to have an option that makes the editor ignore special keys like Tab/Escape/Enter and let them bubble up to its parent control. That way you don't have to handle e.g. the KeyPress event yourself and call Control.SelectNextControl for the Tab key or trigger the form's cancel button on Escape.

Perhaps there's already an elegant way that i don't see.

RaeuberHotzenplotz avatar Mar 18 '16 15:03 RaeuberHotzenplotz

See issue #101 for a possible answer.

jacobslusser avatar Mar 19 '16 17:03 jacobslusser

Yes, overriding ProcessCmdKey is also an option. I was just asking for an out-of-the-box solution like a method scintilla.IgnoreKey(Keys.Tab) that would simplify the problem.

RaeuberHotzenplotz avatar Mar 19 '16 17:03 RaeuberHotzenplotz