1

Hii.. I have made a custom toolbar in IE. I would like to have keyboard shortcuts for the buttons of the same. Is it possible. Specifically I would like the toolbar options to be accessed by combination of keys like Ctrl+alt+A etc.

Sharad
  • 963
  • 11
  • 24

2 Answers2

0

You need to implement the right interface. I'm not 100% sure off-hand what that is. It could be IInputObject. It could be one of the crazy OLE interfaces. You could set a breakpoint on your QueryInterface() implementation and see what it asks for.

i_am_jorf
  • 53,608
  • 15
  • 131
  • 222
  • The IInputObject works when we want to take user inputs in textboxes or the like, where our toolbar may get keyboard focus, which isn't the case here. – Sharad Nov 23 '10 at 14:17
0

I finally found a solution using global keyboard hooks viz m_hhook = ::SetWindowsHookEx(WH_KEYBOARD, KeyboardProc, NULL, GetCurrentThreadId());

For more details visit the link http://www.ookii.org/post/ie_addon_development_globally_capturing_keyboard_input.aspx

Sharad
  • 963
  • 11
  • 24