<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Codejock Developer Community : Keyboard navigation problems</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : Keyboard navigation problems]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Thu, 11 Jun 2026 04:01:23 +0000</pubDate>
  <lastBuildDate>Fri, 16 May 2008 01:34:49 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.04</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>forum.codejock.com/RSS_post_feed.asp?TID=10621</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Codejock Developer Community]]></title>
   <url>http://forum.codejock.com/forum_images/codejock-logo.gif</url>
   <link>http://forum.codejock.com/</link>
  </image>
  <item>
   <title><![CDATA[Keyboard navigation problems : Hi,  I don&amp;#039;t understand....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10621&amp;PID=35281&amp;title=keyboard-navigation-problems#35281</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 10621<br /><strong>Posted:</strong> 16 May 2008 at 1:34am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>I don't understand. </DIV><DIV>Do you see same problem in our RibbonSample. Do you see RTF text handle arrows with Menus?</DIV>]]>
   </description>
   <pubDate>Fri, 16 May 2008 01:34:49 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10621&amp;PID=35281&amp;title=keyboard-navigation-problems#35281</guid>
  </item> 
  <item>
   <title><![CDATA[Keyboard navigation problems : Oleg,  The &amp;#034;menu&amp;#034;...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10621&amp;PID=35247&amp;title=keyboard-navigation-problems#35247</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3213">rdhd</a><br /><strong>Subject:</strong> 10621<br /><strong>Posted:</strong> 15 May 2008 at 11:15am<br /><br />Oleg,<DIV>&nbsp;</DIV><DIV>The "menu" is processing the arrows because <FONT size=2>CXTPKeyboardManager</FONT><FONT color=#0000ff size=2>::</FONT><FONT size=2>SetupKeyboardHook has called <FONT size=2>SetWindowsHookEx.</FONT></FONT></DIV><DIV><FONT size=2></FONT>&nbsp;</DIV><DIV><FONT size=2>When using a windows hook to access messages in an application, the application itself will still receive all the messages the hook receives.</FONT></DIV><DIV><FONT size=2></FONT>&nbsp;</DIV><DIV><FONT size=2>In our application, the arrow keys are used to manipulate our view orientations. When we click on one of your popup buttons or any item that uses the arrow keys (e.g., galleries that have scroll bars) and then use the arrow keys, I see you hook routine getting called and it sends the key events (eventually) to the popup to navigate the user's selection.</FONT></DIV><DIV><FONT size=2></FONT>&nbsp;</DIV><DIV><FONT size=2>After calling the hook, Windows then proceeds to process the message the normal way so the message makes it to our WindowProc and we process the keystroke too.</FONT></DIV><DIV><FONT size=2></FONT>&nbsp;</DIV><DIV><FONT size=2>This is becoming a major issue in our application. Here is a sample of the call stack that shows me just why the archetecture of CJ is causing us these problems:</FONT></DIV><DIV><FONT size=2></FONT>&nbsp;</DIV><DIV>&gt;&nbsp;ToolkitPro1120vc80D.dll!CXTPCommandBar::OnHookKeyDown(unsigned int nChar=0x00000028, long lParam=0x01500001)&nbsp; Line 949&nbsp;C++<BR>&nbsp;&nbsp;ToolkitPro1120vc80D.dll!CXTPPopupBar::OnHookKeyDown(unsigned int nChar=0x00000028, long lParam=0x01500001)&nbsp; Line 1640&nbsp;C++<BR>&nbsp;&nbsp;ToolkitPro1120vc80D.dll!CXTPCommandBar::OnHookMessage(HWND__ * __formal=0x00000000, unsigned int nMessage=0x00000100, unsigned int &amp; wParam=0x00000028, long &amp; lParam=0x01500001, HWND__ * __formal=0x00000000)&nbsp; Line 1151 + 0x22 bytes&nbsp;C++<BR>&nbsp;&nbsp;ToolkitPro1120vc80D.dll!CXTPKeyboardManager::ProcessKeyboardHooks(unsigned int nMessage=0x00000100, unsigned int wParam=0x00000028, long lParam=0x01500001)&nbsp; Line 391 + 0x21 bytes&nbsp;C++<BR>&nbsp;&nbsp;ToolkitPro1120vc80D.dll!CXTPKeyboardManager::KeyboardProc(int code=0x00000000, unsigned int wParam=0x00000028, long lParam=0x01500001)&nbsp; Line 433 + 0x15 bytes&nbsp;C++<BR>&nbsp;&nbsp;<a href="mailto:user32.dll!_DispatchHookA@16" target="_blank">user32.dll!_DispatchHookA@16</A>()&nbsp; + 0x56 bytes&nbsp;<BR>&nbsp;&nbsp;<a href="mailto:user32.dll!_CallHookWithSEH@16" target="_blank">user32.dll!_CallHookWithSEH@16</A>()&nbsp; + 0x21 bytes&nbsp;<BR>&nbsp;&nbsp;<a href="mailto:user32.dll!___fnHkINDWORD@4" target="_blank">user32.dll!___fnHkINDWORD@4</A>()&nbsp; + 0x28 bytes&nbsp;<BR>&nbsp;&nbsp;<a href="mailto:ntdll.dll!_KiUserCallbackDispatcher@12" target="_blank">ntdll.dll!_KiUserCallbackDispatcher@12</A>()&nbsp; + 0x2e bytes&nbsp;<BR>&nbsp;&nbsp;<a href="mailto:user32.dll!_DispatchHookA@16" target="_blank">user32.dll!_DispatchHookA@16</A>() &nbsp;<BR></DIV>]]>
   </description>
   <pubDate>Thu, 15 May 2008 11:15:10 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10621&amp;PID=35247&amp;title=keyboard-navigation-problems#35247</guid>
  </item> 
  <item>
   <title><![CDATA[Keyboard navigation problems : Which sample do you have that...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10621&amp;PID=35240&amp;title=keyboard-navigation-problems#35240</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3213">rdhd</a><br /><strong>Subject:</strong> 10621<br /><strong>Posted:</strong> 15 May 2008 at 10:03am<br /><br />Which sample do you have that reacts to the arrow keys?<DIV>&nbsp;</DIV><DIV>Are you processing windows messages the normal way or are you using windows hooks to get the keystrokes and process them while allowing the events to proceed to the app where the events are processed using WindowProc procedures?</DIV>]]>
   </description>
   <pubDate>Thu, 15 May 2008 10:03:46 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10621&amp;PID=35240&amp;title=keyboard-navigation-problems#35240</guid>
  </item> 
  <item>
   <title><![CDATA[Keyboard navigation problems : Hi,  Do you see same with any...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10621&amp;PID=35215&amp;title=keyboard-navigation-problems#35215</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 10621<br /><strong>Posted:</strong> 15 May 2008 at 1:36am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>Do you see same with any our sample ?</DIV>]]>
   </description>
   <pubDate>Thu, 15 May 2008 01:36:53 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10621&amp;PID=35215&amp;title=keyboard-navigation-problems#35215</guid>
  </item> 
  <item>
   <title><![CDATA[Keyboard navigation problems : When I click on a popup button...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10621&amp;PID=35194&amp;title=keyboard-navigation-problems#35194</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3213">rdhd</a><br /><strong>Subject:</strong> 10621<br /><strong>Posted:</strong> 14 May 2008 at 10:32am<br /><br />When I click on a popup button on the command bar ribbon and use the arrow keys to navigate the menu, the popup window does not consume the keystrokes.<DIV>&nbsp;</DIV><DIV>This causes the application to also see the arrow keys and the result is the arrow key strokes are processed twice by the popup window (correct) but not by the application too (incorrect).</DIV><DIV>&nbsp;</DIV><DIV>It looks like the problem is related to the "hook" procedures CJ uses. CJ is hooking into the keyboard events and processing certain keystrokes without removing the events from the event queue.</DIV><DIV>&nbsp;</DIV><DIV>How can I force the CJ control to not allow the message to be passed onto the application once CJ decides the keystroke is meant for its control?</DIV>]]>
   </description>
   <pubDate>Wed, 14 May 2008 10:32:53 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10621&amp;PID=35194&amp;title=keyboard-navigation-problems#35194</guid>
  </item> 
 </channel>
</rss>