Simulating pressing the ENTER key

Aug 18, 2014 at 6:32 AM
Hi

How do you simulate pressing the ENTER key in White? I have tried the following, which doesn't appear to work:
Keyboard.Instance.PressSpecialKey(KeyboardInput.SpecialKeys.RETURN);
Aug 18, 2014 at 6:41 AM
ashby wrote:
Hi

How do you simulate pressing the ENTER key in White? I have tried the following, which doesn't appear to work:
Keyboard.Instance.PressSpecialKey(KeyboardInput.SpecialKeys.RETURN);
Turns out the code snipped above does work - I was simply having other issues which prevented the correct element from receiving focus.
Marked as answer by ashby on 8/17/2014 at 10:41 PM