John Ehresman: > I want to clear the mapping for ESC from the internal keymap and have > the gtk key press event handler return False so that the widget's parent > gets it. The patch is attached -- it treats SCI_NULL the same as 0 in > Editor::KeyDown and avoids adding SCK_ESCAPE to the buffer as a > character in ScintillaGTK::KeyDefault.
It may be better to document '0' as meaning propagate or produce an explicit way to ask for default processing (perhaps SCI_DEFAULT). Adding ESC to the buffer as the default key behaviour matches the other control keys. Yes, many people dislike this but there are also users that have almost-ASCII file types with embedded cursor control and such like. > Two questions: why is the msg set to SCI_NULL rather to 0 by > SCI_CLEARCMDKEY? IIRC there was quite a lot of unwanted behaviour if keys automatically propagated out to the container. Tab and the arrow keys often moved focus around in weird ways. > And should the test to add a character in > ScintillaGTK::KeyDefault filter out other control keys? Only as an option. Neil _______________________________________________ Scintilla-interest mailing list [email protected] http://mailman.lyra.org/mailman/listinfo/scintilla-interest
