<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Tool OnKeyDown Problem in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/tool-onkeydown-problem/m-p/666929#M17893</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using Arcobjects, I created a custom create features tool that allows a user to switch between sketch and trace by pressing the control key.&amp;nbsp; I have set this as the default counstruction tool for all of my features.&amp;nbsp; So when the feature is selected this is the default tool.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This tool works, i can select the tool, start a sketch, press control, and switch between the different functions.&amp;nbsp; however, if i select the tool and the first think I do is hit control to switch between tools, the OnKeyDown is never reached.&amp;nbsp; It appears that the map is not the focus until it is clicked within?&amp;nbsp; I realized this when debugging, as I would switch between windows, and when you switch back to arcmap from another window, the map section is in focus and OnKeyDown works.&amp;nbsp; i also noticed that if my tool is not the default tool, and I click on it, it knows the map and I am able to use OnKeyDown right away.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My question is how can I get the Map itself to become focused so that OnKeyDown will work.&amp;nbsp; I need to be able to hit the control key before I start my sketch and I need my tool to be the default construction tool.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 22 Aug 2014 20:32:16 GMT</pubDate>
    <dc:creator>MKa</dc:creator>
    <dc:date>2014-08-22T20:32:16Z</dc:date>
    <item>
      <title>Tool OnKeyDown Problem</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/tool-onkeydown-problem/m-p/666929#M17893</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using Arcobjects, I created a custom create features tool that allows a user to switch between sketch and trace by pressing the control key.&amp;nbsp; I have set this as the default counstruction tool for all of my features.&amp;nbsp; So when the feature is selected this is the default tool.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This tool works, i can select the tool, start a sketch, press control, and switch between the different functions.&amp;nbsp; however, if i select the tool and the first think I do is hit control to switch between tools, the OnKeyDown is never reached.&amp;nbsp; It appears that the map is not the focus until it is clicked within?&amp;nbsp; I realized this when debugging, as I would switch between windows, and when you switch back to arcmap from another window, the map section is in focus and OnKeyDown works.&amp;nbsp; i also noticed that if my tool is not the default tool, and I click on it, it knows the map and I am able to use OnKeyDown right away.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My question is how can I get the Map itself to become focused so that OnKeyDown will work.&amp;nbsp; I need to be able to hit the control key before I start my sketch and I need my tool to be the default construction tool.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Aug 2014 20:32:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/tool-onkeydown-problem/m-p/666929#M17893</guid>
      <dc:creator>MKa</dc:creator>
      <dc:date>2014-08-22T20:32:16Z</dc:date>
    </item>
  </channel>
</rss>

