Expand my Community achievements bar.

Radically easy to access on brand approved content for distribution and omnichannel performant delivery. AEM Assets Content Hub and Dynamic Media with OpenAPI capabilities is now GA.

JavaScipt - capture of ctrl + smth

Avatar

Former Community Member
I need to capture letters from input of the textfield. I'm doing this with xfa.event.change event. But I don't know how to capture f.ex ctrl+v. So I want to knwo when users enters ctrl+v and put something else in the text field. Is there a way to do this? I am able to capture enter by doing it like this:

if(xfa.event.change=="\n"){

xfa.event.change=" ";

}

But it doesn't work with ctrl
0 Replies