Robert Roessler wrote:

Darren Schroeder wrote:

I'm trying to catch a Ctrl-S in my editor component so it doesn't put the [DC3] key in the scintilla window. I've looked through the ScintillaDoc.html but nothing is really jumping out at me. Can anyone give me a suggestion of where to look?


It may just be a perspective issue - i.e., who processes the keys?

I think that your environment ("container" for Scintilla) should not pass in key events that you don't want the component to see... note SciTE, where Ctrl-S is consumed before Scintilla sees it. Or my own use of Scintilla (in GTK2+): the GTK "ui manager" grabs Ctrl-S because it is a menu accelerator...

In Windows-land, a simple hack could be to use a pretranslate handler in the containing window.

Robert Roessler
[EMAIL PROTECTED]
http://www.rftp.com
_______________________________________________
Scintilla-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scintilla-interest


I am posting here a solution I used (someone else posted it, a month ago or so) (for Windows)

go to ScintillaWin::WndProc, to the WM_CHAR event and
change:
if (!iscntrl(wParam&0xff) || !lastKeyDownConsumed) {
to:
if (!iscntrl(wParam&0xff) && !lastKeyDownConsumed) {

Solved it for me.


_______________________________________________
Scintilla-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scintilla-interest

Reply via email to