jay <[EMAIL PROTECTED]> wrote: > Thanks for the info. I have already handled CTRL+ENTER > as suggested. However, I have another issue due to key > handling. > > I have an MDIWindow that has many child scintilla > controls. When I handled CTRL+ENTER in scintilla, all > other hotkeys attached with MDIWindow does not work. > > It looks like Scintilla overrides all other hotkeys. > How can I enable CTRL+ENTER only to scintilla and > other keys work as usual for MDIWindow?
It depends on what you are doing. If you are getting an event for literally every keypress coming into Scintilla, then what you can usually do (again, in my experience with other GUI toolkits) is to "skip" the event, that is, tell the event that you don't want to handle it here, but you want some other event handler to process and handle it. There should also be a way of using the AssignCmdKey() method to specifically add the CTRL+ENTER key combination to call a particular function or method. If this starts capturing everything...then something strange is going on. - Josiah > --- Josiah Carlson <[EMAIL PROTECTED]> wrote: > > > > > jay <[EMAIL PROTECTED]> wrote: > > > I am using .net wrapper of scintilla. > > > I wanted to handle the CTRL+ENTER key with a > > specal > > > function i have. How can I handle it? > > > > > > Similarly, I wanted to use F1, F2...F9 keys (not > > with > > > CTRL, but individually). How can I handle it with > > some > > > delegates or any other scintilla routines. > > > > Usually there is a mechanism to capture keyboard or > > character events > > sent to the window. I believe you should be able to > > use the same > > mechanism to capture keyboard/character events in > > your wrapped scintilla > > instance as you would in other .NET widgets. > > > > - Josiah > > > > _______________________________________________ Scintilla-interest mailing list [email protected] http://mailman.lyra.org/mailman/listinfo/scintilla-interest
