Custom Object Properties Page: Enter and Escape Key

Dale,

Thanks. This works.

I think it would be helpful to add this to the sample:
The key that is pressed can be retrieved by adding the following line to LocalWindowsHook_HookInvoked method:
var wParam = (uint)Marshal.ReadInt32(e.lParam, Marshal.OffsetOf(typeof(WindowsInterop.MSG), “wParam”).ToInt32());

Thanks,
Alan