[Gtk-sharp-list] No Return key event for indented lines in gtksourceview

Daniel Borgmann spark-mailinglists@web.de
Sun, 06 Feb 2005 21:37:13 +0100


Hello,

this issue is kinda mysterious to me. I'm overwriting the
OnKeyPressEvent function in my SourceView subclass (I also tried the
ConnectBefore method) which works fine, but the Return key will not emit
anything if auto indenting is enabled and the Return key is pressed on
an indented line (only then).
This confuses me, I expected that the overwritten method would ALWAYS be
called first? Apparently the indenting code of GtkSourceView somehow
blocks it. This is a serious showstopper for me, so I'd be very thankful
if anyone could hint me towards a solution. Thanks!

-- 
Daniel Borgmann <spark@mayl.de>