|
| [WD19] How to clear the keyboard? |
| Iniciado por guest, 22,sep. 2015 07:55 - 3 respuestas |
| |
| | | |
|
| |
| Publicado el 22,septiembre 2015 - 07:55 |
How can I clear (empty) the keyboard buffer?
SendKey("") //Does not seem to work
I have a master file form window with a child table and a button to call a child record form window.
Both windows have Control-Enter specified as the accept key combination to launch their own OK (accept) button.
In some cases (but not all!!!) the Control-Enter pressed in the child form window goes also down to the master form window and closes it, too! How can I prevent this?
Best regards Ola |
| |
| |
| | | |
|
| | |
| |
| Publicado el 22,septiembre 2015 - 08:54 |
OK,
Found a solution. I added ReturnToCapture(ChildTable) to the end of the child form calling button, and that keeps the master form window from closing.
But I would still like to know, how to clear the keyboard buffer...
Best regards Ola |
| |
| |
| | | |
|
| | |
| |
| Publicado el 23,septiembre 2015 - 19:45 |
| |
| |
| | | |
|
| | |
| |
| Publicado el 27,septiembre 2015 - 11:45 |
Hi Paulo,
Thanks for the hint. I tested it like this:
IF KeyPressed(kpControl) AND KeyPressed(VK_RETURN) THEN Trace("First check: Form modified by pressing Control + Enter") END KeyPressed(kpControl, False) KeyPressed(VK_RETURN, False) IF KeyPressed(kpControl) AND KeyPressed(VK_RETURN) THEN Trace("Checking for the second time: Form modified by pressing Control + Enter") END Both checks return true, so it doesn't work.
Best regards Ola |
| |
| |
| | | |
|
| | | | |
| | |
|