Angus Leeming <[EMAIL PROTECTED]> writes: | 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.
Very true. | So I tried this. Works perfectly with simple input "A string" and with things | like Compose-A-" So we are waiting for XForms 1.0 then. I just tried exactly this with the xforms I have installed (0.89.5) <Return> gives "Unknown function" Not possible to insert same char many times consecutively. (This is caused by something else: KeyPress event, serial 27, synthetic NO, window 0x4c00001, root 0x3a, subw 0x0, time 4105560200, (302,-390), root:(306,612), state 0x0, keycode 44 (keysym 0x6a, j), same_screen YES, XLookupString gives 1 characters: "j" KeyRelease event, serial 27, synthetic NO, window 0x4c00001, root 0x3a, subw 0x0, time 4105560200, (302,-390), root:(306,612), state 0x0, keycode 44 (keysym 0x6a, j), same_screen YES, XLookupString gives 1 characters: "j" KeyPress event, serial 27, synthetic NO, window 0x4c00001, root 0x3a, subw 0x0, time 4105560200, (302,-390), root:(306,612), state 0x0, keycode 44 (keysym 0x6a, j), same_screen YES, XLookupString gives 1 characters: "j" Notice how the time does not change...) | 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) > -- Lgb