|Re: Simulate the enter key [message #541849 is a reply to message #541822]
||Tue, 22 June 2010 17:08
| Ketan Padegaonkar
Registered: July 2009
This could either be because of a different version of gtk or a bug in SWT.
If this is something that you could reproduce using a minimal SWT-only
API you might get some traction on the swt-dev list.
http://ketan.padegaonkar.name | http://eclipse.org/swtbot
On 6/22/10 8:54 AM, Pascal Gelinas wrote:
> Hi everyone,
> I have a couple of test that make use of the native key event
> (keyboard,typeText(), control.pressShortcut() and the likes). Everything
> seemed to work well, until recently when I added some validation. The
> Enter key does not seem to be properly emulated depending on the OS.
> I read a couple of articles online saying that I should use
> Keystrokes.CR to emulate the Enter key. That works very well on Ubuntu,
> but under CentOS it doesn't work. I did some testing and when I used
> Keystrokes.LF, it works under CentOS, but it doesn't work anymore in
> I was wondering if anyone had any clue to why this is happening...
> I'm using the SWTKeyboardStrategy (so Display.post()) with Eclipse 3.5,
> JDK 1.6. Ubuntu is a 10.04 and CentOS is a 5.5
Powered by FUDForum
. Page generated in 0.27609 seconds