Welcome Guest Search | Active Topics | Sign In | Register

Web browser best practice Options
Eurice
Posted: Tuesday, December 30, 2014 10:58:50 AM
Rank: Advanced Member
Groups: Member

Joined: 12/10/2014
Posts: 133
Hello,
I'm writing some custom c# function wich execute on keypress (F3,F4,escape ...); is it better/faster to use the WebView.onkeydown or WebView.oncommand ?


Regards
eo_support
Posted: Tuesday, December 30, 2014 9:21:46 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,196
Hi,

You can use either method. The benefit of using OnCommand (together with WebView.Shortcuts property) is that it automatically does the key matching for you, which can save you a few lines of code if you use key together with Alt/Ctrl keys. Otherwise OnKeyDown will work just fine for you.

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.