hi,
thanks for your answer.
i need to save the keycode from previous on_key_down ( in on_stc_modified, insertbefore the keycode is 0 )
what i have done so far, is:
finding out that fold level has headerflag ( x2000 (x2400) )
finding out that block is not expanded
finding the line of lastchild
...
10 [+] xxx (head, collapsed, lastchild in line 19)
# ..
# end_xxx
20 [+] yyy
what now i have to do ?
do i have to write a method that inserts an \n in position after lastchild and wx.CallAfter that method and then event.Veto() the original \n at wrong position ?
or can i simply change the cursor-position and event.Skip() so that the \n is inserted in modified position ?
StyledTextEvent has no Veto() ?!
if instead of veto i simply return (no .Skip()) the \n is inserted, nevertheless. i thought insertbefore can avoid what is intended to be inserted ?
now i have a property .veto and in mod_before_insert i set .veto=true
in mod_inserttext i check .veto and if set i clear it and return (instead of not existing .Veto())
but no success.
please help.