fix for ctrl-c/v and other shotcuts in a webbrowser

Add-in Express™ Support Service
That's what is more important than anything else

fix for ctrl-c/v and other shotcuts in a webbrowser
 
Patrick Carter




Posts: 10
Joined: 2010-08-31
The fix for shortcuts not working in a webbrowser control is great, but it only works if you are using an IEModule. I am using an IEBarModule. However I have the source for AddinExpress.IE.dll and made the appropriate changes and rebuilt the source. Everything works great if I register the addon via Visual Studio, but if I use the installer it appears as if nothing gets registered and the addon does not appear in IE. Is it not possible to use a custom built version of AddinExpress.IE.dll? If it is possible where should I look to troubleshoot?
Posted 12 Oct, 2010 15:45:41 Top
Sergey Grischenko


Add-in Express team


Posts: 7233
Joined: 2004-07-05
Hi Patrick.

Did you set the HandleShortcuts property of the toolbar module to true?
Posted 14 Oct, 2010 11:48:03 Top
Patrick Carter




Posts: 10
Joined: 2010-08-31
Yes, but that's not the problem. In your source: Common.cs line 3179. The WebBrowserShortcuts are only being processed if it's coming from an ADXIEModule, we are using an ADXIEBarModule. Those two types are not equivalent so the conditional on line 3181 will always resolve to false for us and no shortcuts will work in the WebBrowser.

As I said. I have it fixed, and can use the custom built AddinExpress.IE assembly only if it is registered from within Visual Studio. When I use a setup project the addon appears to not get registered.
Posted 14 Oct, 2010 12:13:07 Top
Sergey Grischenko


Add-in Express team


Posts: 7233
Joined: 2004-07-05
Is the add-on registered if you use our version of the AddinExpress.IE assembly?
Posted 14 Oct, 2010 12:33:44 Top
Patrick Carter




Posts: 10
Joined: 2010-08-31
Yes
Posted 14 Oct, 2010 12:42:33 Top
Sergey Grischenko


Add-in Express team


Posts: 7233
Joined: 2004-07-05
Patrick, I have just sent you the ADXRegistrator.cs file. You need to include it in the Add-in Express for IE project. It should solve the registration issue.
Posted 14 Oct, 2010 13:55:16 Top
Patrick Carter




Posts: 10
Joined: 2010-08-31
Thanks Sergey. That worked.
Posted 15 Oct, 2010 00:49:56 Top