All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:
Hi
Starting out with Test Studio. My first "stop" was some javascript code using the Keyup event.
In the docs I found that "FireKeyEvents" should be turned on, but I could not find that option.
It turned out that uncheck off "Unicode Support" was the way forward.
Regards.
Hi,
Was posting so if anyone searching "FireKeyEvents" would get a relevant hit :-)
Here are the story:
We have an Angular directive where keyup are tested. something like this:
elem.bind('keyup', function (event) { // Only proceed if key 0-9, numpad 0-9 or ctrl+v is pressed to trigger the serviceif (elem[0].validity.valid && ((event.keyCode >= 48 && event.keyCode <= 57) || (event.keyCode >= 96 && event.keyCode <= 105) || event.ctrlKey && event.keyCode === 86)) {
This event was not fired, so my first attempt was to send ctrl+v via code, like this:
HtmlInputText c = Find.ById<HtmlInputText>("cpr"); c.Focus(); Manager.Desktop.KeyBoard.KeyDown(System.Windows.Forms.Keys.LControlKey); Manager.Desktop.KeyBoard.TypeText("v"); Manager.Desktop.KeyBoard.KeyUp(System.Windows.Forms.Keys.LControlKey);
This did not do the trick - then I discovered that unchecking "Unicode Support" solved the matter.