<?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: Shortcuts assigned to numerals being executed instead of inserting their num. values in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/Shortcuts-assigned-to-numerals-being-executed-instead-of/m-p/244314#M3851</link>
    <description>@Tibor I've problems with DG::LowLevelKeyboardHandler as DG has no member class with this name?? Can you please assist?</description>
    <pubDate>Fri, 02 Aug 2019 09:51:11 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-08-02T09:51:11Z</dc:date>
    <item>
      <title>Shortcuts assigned to numerals being executed instead of inserting their num. values</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Shortcuts-assigned-to-numerals-being-executed-instead-of/m-p/244309#M3846</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;Hello, I've got a question about shortcuts. Our users are complaining they have usually various commands assigned to the numerals. E.g. &lt;STRONG&gt;1&lt;/STRONG&gt; is True Line Weight, &lt;STRONG&gt;3&lt;/STRONG&gt; is Unify, &lt;STRONG&gt;4&lt;/STRONG&gt; is intersect...&lt;BR /&gt;and because of that, they are not able to put those values to our virtual frame buffer window text fields ( when they try, assigned shortcut commands are executed and their values are not written into a text field ).&lt;BR /&gt;&lt;BR /&gt;It's possible to disable using shortcuts temporarily? Or what workaround do you suggest? Thanks for your feedback!&lt;/DIV&gt;</description>
      <pubDate>Tue, 04 Oct 2022 14:25:45 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Shortcuts-assigned-to-numerals-being-executed-instead-of/m-p/244309#M3846</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-10-04T14:25:45Z</dc:date>
    </item>
    <item>
      <title>Re: Shortcuts assigned to numerals being executed instead of inserting their num. values</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Shortcuts-assigned-to-numerals-being-executed-instead-of/m-p/244310#M3847</link>
      <description>I've uploaded a video : &lt;A href="https://youtu.be/LBQUJSrVa-k" target="_blank"&gt;&lt;/A&gt;&lt;S&gt;&lt;A href="https://youtu.be/LBQUJSrVa-k" target="_blank"&gt;&lt;/A&gt;&lt;A href="&amp;lt;/s&amp;gt;https://youtu.be/LBQUJSrVa-k&amp;lt;e&amp;gt;"&gt;&lt;/A&gt;&lt;/S&gt;https://youtu.be/LBQUJSrVa-k&lt;E&gt;&lt;/E&gt;&lt;BR /&gt;
I wanted to write "1" but I have got the Plot command set as a shortcut for the "1" :</description>
      <pubDate>Wed, 31 Jul 2019 08:19:41 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Shortcuts-assigned-to-numerals-being-executed-instead-of/m-p/244310#M3847</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-07-31T08:19:41Z</dc:date>
    </item>
    <item>
      <title>Re: Shortcuts assigned to numerals being executed instead of inserting their num. values</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Shortcuts-assigned-to-numerals-being-executed-instead-of/m-p/244311#M3848</link>
      <description>Another update: I've got the callbacks for the gain/loss of focus in the VFB text fields. Now the final question is, &lt;B&gt;am I able to enable/disable shortcuts globally?&lt;/B&gt;</description>
      <pubDate>Wed, 31 Jul 2019 08:54:33 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Shortcuts-assigned-to-numerals-being-executed-instead-of/m-p/244311#M3848</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-07-31T08:54:33Z</dc:date>
    </item>
    <item>
      <title>Re: Shortcuts assigned to numerals being executed instead of inserting their num. values</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Shortcuts-assigned-to-numerals-being-executed-instead-of/m-p/244312#M3849</link>
      <description>Your dialog is a modeless dialog, am I right?&lt;BR /&gt;
&lt;BR /&gt;
In this case you should inherit your dialog class from DG::LowLevelKeyboardHandler, call InstallHandler(*this) from the constructor, call RemoveHandler(*this) from the destructor and override the KeyPressed function like this:
&lt;PRE&gt;bool &amp;lt;MyDialogClass&amp;gt;::KeyPressed (const DG::Key::Code&amp;amp;, DG::Item**)
{
	// If my dialog has the focus, then don't allow ARCHICAD to handle the shortcut
	short focusID;
	DGGetFocus (DG_ALL_DIALOGS, &amp;amp;focusID, nullptr);
	if (focusID == GetId ()) {
		return true;
	}

	return false;
}&lt;/PRE&gt;</description>
      <pubDate>Wed, 31 Jul 2019 09:12:48 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Shortcuts-assigned-to-numerals-being-executed-instead-of/m-p/244312#M3849</guid>
      <dc:creator>Tibor Lorantfy</dc:creator>
      <dc:date>2019-07-31T09:12:48Z</dc:date>
    </item>
    <item>
      <title>Re: Shortcuts assigned to numerals being executed instead of inserting their num. values</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Shortcuts-assigned-to-numerals-being-executed-instead-of/m-p/244313#M3850</link>
      <description>&lt;BLOCKQUOTE&gt;Tibor wrote:&lt;BR /&gt;
Your dialog is a modeless dialog, am I right?&lt;BR /&gt;
&lt;BR /&gt;
In this case you should inherit your dialog class from DG::LowLevelKeyboardHandler, call InstallHandler(*this) from the constructor, call RemoveHandler(*this) from the destructor and override the KeyPressed function like this:
&lt;PRE&gt;bool &amp;lt;MyDialogClass&amp;gt;::KeyPressed (const DG::Key::Code&amp;amp;, DG::Item**)
{
	// If my dialog has the focus, then don't allow ARCHICAD to handle the shortcut
	short focusID;
	DGGetFocus (DG_ALL_DIALOGS, &amp;amp;focusID, nullptr);
	if (focusID == GetId ()) {
		return true;
	}

	return false;
}&lt;/PRE&gt;
&lt;/BLOCKQUOTE&gt;

Hm, unfortunately, VFB window is not an ArchiCAD dialog and we are re-using this window across plugins. I'm able to handle events for user gain/loss focus in the text field in that window. Therefore my idea was to tell ArchiCAD there to bypass the shortcuts. Is something like this possible?</description>
      <pubDate>Wed, 31 Jul 2019 10:58:51 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Shortcuts-assigned-to-numerals-being-executed-instead-of/m-p/244313#M3850</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-07-31T10:58:51Z</dc:date>
    </item>
    <item>
      <title>Re: Shortcuts assigned to numerals being executed instead of inserting their num. values</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Shortcuts-assigned-to-numerals-being-executed-instead-of/m-p/244314#M3851</link>
      <description>@Tibor I've problems with DG::LowLevelKeyboardHandler as DG has no member class with this name?? Can you please assist?</description>
      <pubDate>Fri, 02 Aug 2019 09:51:11 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Shortcuts-assigned-to-numerals-being-executed-instead-of/m-p/244314#M3851</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-08-02T09:51:11Z</dc:date>
    </item>
    <item>
      <title>Re: Shortcuts assigned to numerals being executed instead of inserting their num. values</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Shortcuts-assigned-to-numerals-being-executed-instead-of/m-p/244315#M3852</link>
      <description>In the meanwhile, I tried to use `DGEnableHotKeys` and `DisableHotKeys` but this was not disabling anything at all. I was calling this on the palette..</description>
      <pubDate>Fri, 02 Aug 2019 13:58:27 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Shortcuts-assigned-to-numerals-being-executed-instead-of/m-p/244315#M3852</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-08-02T13:58:27Z</dc:date>
    </item>
  </channel>
</rss>

