VK_UP/VK_DOWN/... + hidden paragraphs

  • WPTools 6.13

    We are using deeply nested paragraphs (some hidden). This makes for example navigation using VK_DOWN kind of lame as the cursor doesn't seems to move at all when encountering say three consecutive hidden paragraphs. Any plans to just skip over hidden paragraphs during navigation or is this something I have to fix myself?


    Regards
    patrik.nyborg(a)genicore.se

    • Offizieller Beitrag

    Hi,

    We do currently not plan to change this behavior since it would make control text inaccessible.

    It would be not very diffuclt to make a KeyDown handler to jump over hidden paragraphs, though. You need to check the WPRichText.TextCursor.active_line.

    That is the line number of the current line. If it is 0 ro the last line of the current paragraph (par.LineCount) You can position ActiveParagraph accordingly up or down.

    Julian

  • Hi!

    Zitat

    We do currently not plan to change this behavior since it would make control text inaccessible.


    I was a bit unspecific, what I meant was hidden paragraphs with no text whatsoever - only children.


    Regards
    patrik.nyborg(a)genicore.se