2
我實現了一個AxWebBrowser控件,並將IDocHostUIHandler添加到我的導航文檔中以進行自定義上下文菜單。IDocHostUIHandler TranslateAccelerator不允許鍵盤輸入
研究後,我發現我不得不
throw new System.Runtime.InteropServices.COMException("", 1);
在TranslateAccelerator函數的實現,以calrify,我不處理鍵盤輸入。
首先它的工作,但今天我編譯和Visual Studio打破了第一次機會的表達和鍵盤輸入不再承認。
背景: 所使用的方法來實現像在這個鏈接所描述的接口:找到答案 http://www.codeproject.com/Articles/2491/Using-MSHTML-Advanced-Hosting-Interfaces