<?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 Re: AutoCAD steals my F keys in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/autocad-steals-my-f-keys/m-p/3068918#M60401</link>
    <description>&lt;P&gt;are you sure about this? because KeyPress event is not handling F keys, from what i have read, it only catches printable characters&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and when i set e.Handled to True in KeyDown or KeyUp, it's still processed by AutoCAD&lt;/P&gt;</description>
    <pubDate>Thu, 23 Jun 2011 06:21:05 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2011-06-23T06:21:05Z</dc:date>
    <item>
      <title>AutoCAD steals my F keys</title>
      <link>https://forums.autodesk.com/t5/net-forum/autocad-steals-my-f-keys/m-p/3067390#M60399</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;in my forms, i use the F keys as shortcuts for some operations, but even if the key is pressed on the form, AutoCAD still processes it.&lt;/P&gt;&lt;P&gt;For example, i use F12 to temporarily hide the forms, so the user can look in the drawing, but with pressing F12 AutoCAD turns the Dynamic input on, same with F3, F11, F6, but not with F5 or F7&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;is there some workaround or setting to disable AutoCAD functions for F keys while a modeless form is shown?&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jun 2011 06:43:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/autocad-steals-my-f-keys/m-p/3067390#M60399</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-06-22T06:43:58Z</dc:date>
    </item>
    <item>
      <title>Re: AutoCAD steals my F keys</title>
      <link>https://forums.autodesk.com/t5/net-forum/autocad-steals-my-f-keys/m-p/3068722#M60400</link>
      <description>&lt;P&gt;I think you just handle the KeyPress event from whatever control you are watching for F keys, and set the e.Handled property to true if it is a key you are handling.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jun 2011 23:15:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/autocad-steals-my-f-keys/m-p/3068722#M60400</guid>
      <dc:creator>chiefbraincloud</dc:creator>
      <dc:date>2011-06-22T23:15:16Z</dc:date>
    </item>
    <item>
      <title>Re: AutoCAD steals my F keys</title>
      <link>https://forums.autodesk.com/t5/net-forum/autocad-steals-my-f-keys/m-p/3068918#M60401</link>
      <description>&lt;P&gt;are you sure about this? because KeyPress event is not handling F keys, from what i have read, it only catches printable characters&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and when i set e.Handled to True in KeyDown or KeyUp, it's still processed by AutoCAD&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jun 2011 06:21:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/autocad-steals-my-f-keys/m-p/3068918#M60401</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-06-23T06:21:05Z</dc:date>
    </item>
    <item>
      <title>Re: AutoCAD steals my F keys</title>
      <link>https://forums.autodesk.com/t5/net-forum/autocad-steals-my-f-keys/m-p/3069502#M60402</link>
      <description>&lt;P&gt;How do you use the F keys? I assume you place a menu bar on the form and assign a Function key to some menu items.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It works correctly with my Acad2009/2011 as expected. That is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1.&amp;nbsp;if the form is shown as MODAL form, press F key, corresponding code with particular menu item runs. Because it is modal form, AutoCAd does not respond no matter what F key you press, only the F keys you used in the nodal form react.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. If the form is modeless, the F keys used in the form ONLY react when the form has FOCUS, in the same way as if the form is modal form. If the form does not have focus (that means AutoCAD is currently having the focus!), then press F keys, AutoCAD responds instead of your form.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, I guess, your form is shown as modeless form (or PaletteSet?) and the form/paletteset does not have focus when you press F keys. That is the way how things work.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jun 2011 14:49:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/autocad-steals-my-f-keys/m-p/3069502#M60402</guid>
      <dc:creator>norman.yuan</dc:creator>
      <dc:date>2011-06-23T14:49:14Z</dc:date>
    </item>
    <item>
      <title>Re: AutoCAD steals my F keys</title>
      <link>https://forums.autodesk.com/t5/net-forum/autocad-steals-my-f-keys/m-p/3069526#M60403</link>
      <description>&lt;P&gt;mu use of the F keys is different&lt;/P&gt;&lt;P&gt;i use them to trigger different user input, for example F3 starts the user interaction (ed.StartUserInteraction) and then user picks a point, then the controls on the form are updated acording to that picked point&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;your example works fine, when I'm not hiding the form for user interaction, AutoCAD doesn't react to the F key&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i think i missed this important information in my first post &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jun 2011 14:59:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/autocad-steals-my-f-keys/m-p/3069526#M60403</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-06-23T14:59:06Z</dc:date>
    </item>
    <item>
      <title>Re: AutoCAD steals my F keys</title>
      <link>https://forums.autodesk.com/t5/net-forum/autocad-steals-my-f-keys/m-p/3073788#M60404</link>
      <description>&lt;P&gt;I will sum it up. I use F keys to initiate user input from a modeless form, but AutoCAD also processes that F keys&lt;/P&gt;
&lt;P&gt;so if I press F3 to get a point from the drawing, AutoCAD turns off osnap&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;how can i solve this?&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jun 2011 16:20:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/autocad-steals-my-f-keys/m-p/3073788#M60404</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-06-28T16:20:30Z</dc:date>
    </item>
  </channel>
</rss>

