[open-beos-printing] Re: Further PDF Writer Progress

>What if DocInfoText does not handle tab, shift tab, ctrl tab, ... itself
>but calls KeyDown of the parent class BView instead?

In reply to my own question. The code below works fine!

void TextView::KeyDown(const char *bytes, int32 numBytes)
{
        if (numBytes == 1 && *bytes == B_TAB) {
                BView::KeyDown(bytes, numBytes);
                return;
        }
        BTextView::KeyDown(bytes, numBytes);
}

Thank you Simon for the tip!

- Michael


Other related posts: