[SWTBot-users] question about SWTBotText.notifyKeyboardEvent(..)
Brought to you by:
kpadegaonkar
|
From: Phil Q. <phi...@in...> - 2008-11-14 17:25:01
|
Hey all, Looking at SWTBotText.notifyKeyboardEvent(int, char, int), I notice that after key down and up events are posted a setText(..) is called. Is there no other way? (Programmatic setting of text values doesn't feel quite right and generates behavior that's a bit different than the "real thing" --- notably the cursor does not advance...) I tried removing it and, unsurprisingly, the desired text was not entered/typed. My next thought was to fill in more of the event details. Specifically by synthesizing and posting the VerifyEvent and ModifyEvent that occur between the key down and up but nothing doing. Any thoughts? Thanks! -phil |