Rank: Advanced Member Groups: Member
Joined: 2/11/2015 Posts: 122
|
I want to prevent pasting in some of my WebViews, but the AutoProcessCmdKeys doesn't seem to have consistent behavior. Is there a way to disable or handle these key press events?
|
Rank: Advanced Member Groups: Member
Joined: 2/11/2015 Posts: 122
|
One of my web developers has handled this by capturing the key press event hand calling preventDefault() on it. This appears to be working for his solution so this may be a way to solve this more generally.
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,229
|
Hi,
Handling it in preventDefault is the correct solution. AutoProcessCmdKeys determines whether shortcuts pressed inside the WebView triggers your shortcut event handlers on your .NET side. So it determines whether your .NET event handler is called or not, it does not affect anything inside the WebView.
Thanks
|