On Friday 06 December 2002 12:23 pm, Lars Gullik Bjønnes wrote:
> mmm... we had a huge party at work yesterday... 13 hour party...

Well here's some nice news for a sore head. I finally got it into my head 
that all that KEYPRESS rubbish in XWorkArea was to work-around xforms 
limitations/bugs. 

So I tried this. Works perfectly with simple input "A string" and with things 
like Compose-A-" 
Regards,
Angus


#if FL_VERSION == 1
        case FL_KEYPRESS:
        {
                if (!key) {
                        lyxerr << "Empty kdb action (probably composing)" << std::endl;
                        break;
                }

                if (!ev)
                        break;

                XKeyEvent * xke = reinterpret_cast<XKeyEvent *>(ev);
                KeySym ret_key = key;

#else
        ... all that rubbish down to
#endif
                unsigned int const ret_state = xke->state;

                // If you have a better way to handle "wild-output" of
                // characters after the key has been released than the one
                // below, please contact me. (Lgb)

Reply via email to