BaktunShell icon indicating copy to clipboard operation
BaktunShell copied to clipboard

NativeHandleContractInsulator

Open mediabuff opened this issue 4 years ago • 0 comments

Hello, Thanks for the excellent article and code for the shell. I know this is 10 years old, but still relevant. I have a question regarding NativeHandleContractInsulator.

By implementing above, wpf code below would return null for _addInHwndSourceWrapper (as intended).

_addInHwndSourceWrapper = contract as AddInHwndSourceWrapper; 5: if (_addInHwndSourceWrapper != null) 6: { 7: _addInHwndSourceWrapper.RegisterKeyboardInputSite(new AddInHostSite(this)); 8: }

But this would turn off the Keyboard sink support ? or does it not ?

mediabuff avatar Feb 12 '20 14:02 mediabuff