Hi list,

I have created an SWT wrapper for Scintilla and an Eclipse plugin that allows Scintilla to be used as an Eclipse editor. Both of these are on Windows only, for now. The intent is not to replace the extensive Java editor in Eclipse, but rather to provide a high quality editor for HTML, XML, and other file types that have poor or no support. The sourceforge project is called Jintilla and is at: http://sourceforge.net/projects/jintilla

My current problem is that key presses are eaten by Scintilla. For example, when I press Ctrl+S, Scintilla produces a character and the Eclipse window never receives the keystroke, so the save action is not triggered. I would like to forward all keypresses that Scintilla does not handle to the Eclipse window so the appropriate actions can be taken. How would I go about doing this?

I see the SCN_KEY notification but it doesn't appear to give me the right character in the "ch" field. Reading through the newsgroup archives, I found some mention that this is useful only on GTK+?

I tried subclassing the Scintilla window but this approach requires me to handle every key *before* Scintilla gets a chance. I don't want to try and handle Ctrl+S and the thousand other Eclipse key combinations. I would rather let Scintilla decide to handle the key and if it does not, then give Eclipse a chance.

For testing purposes, when Scintilla's wndproc receives a Ctrl+S WM_KEYDOWN message, I trigger the save action and I do *not* call the orginal wndproc. The document saves but the Ctrl+S character still appears in Scintilla, even though Scintilla never got the WM_KEYDOWN message. What messages do I need to block to avoid having the key combination characters appear in Scintilla?

If what I need is not possible with Scintilla's current API, can you point me in the right direction on where I would need to modify Scintilla's source to acheive this goal?

Thanks!

-Nate

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

Reply via email to