Welcome Guest Search | Active Topics | Sign In | Register

AutoProcessCmdKeys = false doesn't disable paste hotkeys Options
James
Posted: Wednesday, April 20, 2016 11:24:18 AM
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?
James
Posted: Wednesday, April 20, 2016 1:17:24 PM
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.
eo_support
Posted: Wednesday, April 20, 2016 4:05:40 PM
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


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.