Product Bundles
DevCraft
All Telerik .NET and Kendo UI JavaScript components and AI Tools in one package.
Kendo UI
Bundle of AI Tools plus four JavaScript UI libraries built natively for jQuery, Angular, React and Vue.
Telerik
Build great .NET business apps
.Net Web
Cross-Platform
Desktop
Reporting and Documents
Testing & Mocking
Debugging
Build JavaScript UI
Javascript
AI for Developers & IT
Ensure AI program success
AI Coding
Additional Tools
Enhance the developer and designer experience
UI/UX Tools
Free Tools
CMS
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.