Re: [UFO-devel] UTextEdit reacting strangely
Status: Beta
Brought to you by:
schmidtjf
From: Johannes S. <sch...@us...> - 2006-04-23 16:11:13
|
On Sunday 23 April 2006 15:38, Elie `woe` BLETON wrote: > This is probably my tenth problem submitted here, and I'd like to thanks > Johannes for the previous nine solutions to most of my problems. Before > submitting the problem, I'd like to thank him for his work that allowed us > to create something that looks fine and works in a fine way. Thanks! > My current problem is that the cursor keys (or any other "special" key that > is supposed to act on the cursor) are inserting text characters in the > text, making it impossible to correctly move in the edited text. I'm using > libufo in a GLUT context, and I simply pasted my key handling code from the > GLUT sample. The bug is in the GLUT-to-UFO conversion of keys. The third parameter of pushKey{Up,Down} should be 0, e.g.: void specialUpFunc(int key, int, int) { display->pushKeyUp(context, mapGlutSpecialKey(key), 0); if (context->needsRepaint()) { glutPostRedisplay(); } } otherwise the key is echoed as char key event. Thanks for reporting the bug. The developer CVS is already fixed and it should soon be available via anonymous CVS. Regards, Johannes |