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
|
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!
|