<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.multitheftauto.com/wiki/OnDgsKey?action=history&amp;feed=atom</id>
	<title>OnDgsKey - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.multitheftauto.com/wiki/OnDgsKey?action=history&amp;feed=atom"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=OnDgsKey&amp;action=history"/>
	<updated>2026-05-15T12:13:30Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=OnDgsKey&amp;diff=76022&amp;oldid=prev</id>
		<title>Thisdp: Created page with &quot;{{Client event}} __NOTOC__  This event will be triggered when any key is pressed with a DGS element focused.  ==Parameters==  * '''button''': This refers the button pressed. See key names for a list of keys. * '''pressOrRelease''': This refers to whether they were pressing or releasing the key, ''true'' when pressing, ''false'' when releasing.  ==Source== The source of this event is the DGS element which is focused.  ==Example==  &lt;syntax...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=OnDgsKey&amp;diff=76022&amp;oldid=prev"/>
		<updated>2023-01-13T12:32:06Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{Client event}} __NOTOC__  This event will be triggered when any key is pressed with a DGS element focused.  ==Parameters==  * &amp;#039;&amp;#039;&amp;#039;button&amp;#039;&amp;#039;&amp;#039;: This refers the button pressed. See &lt;a href=&quot;/wiki/Key_names&quot; title=&quot;Key names&quot;&gt;key names&lt;/a&gt; for a list of keys. * &amp;#039;&amp;#039;&amp;#039;pressOrRelease&amp;#039;&amp;#039;&amp;#039;: This refers to whether they were pressing or releasing the key, &amp;#039;&amp;#039;true&amp;#039;&amp;#039; when pressing, &amp;#039;&amp;#039;false&amp;#039;&amp;#039; when releasing.  ==Source== The &lt;a href=&quot;/wiki/Event_system#Event_source&quot; title=&quot;Event system&quot;&gt;source&lt;/a&gt; of this event is the DGS element which is focused.  ==Example==  &amp;lt;syntax...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Client event}}&lt;br /&gt;
__NOTOC__ &lt;br /&gt;
This event will be triggered when any key is pressed with a DGS element focused.&lt;br /&gt;
&lt;br /&gt;
==Parameters== &lt;br /&gt;
* '''button''': This refers the button pressed. See [[key names]] for a list of keys.&lt;br /&gt;
* '''pressOrRelease''': This refers to whether they were pressing or releasing the key, ''true'' when pressing, ''false'' when releasing.&lt;br /&gt;
&lt;br /&gt;
==Source==&lt;br /&gt;
The [[event system#Event source|source]] of this event is the DGS element which is focused.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local edit = dgsCreateEdit(200,200,400,50,&amp;quot;test&amp;quot;,false)&lt;br /&gt;
addEventHandler(&amp;quot;onDgsKey&amp;quot;,edit,function(button,state)&lt;br /&gt;
	outputChatBox(button..&amp;quot;:&amp;quot;..(state and &amp;quot;pressed&amp;quot; or &amp;quot;released&amp;quot;))&lt;br /&gt;
end,false)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
===DGS events===&lt;br /&gt;
{{DGSEVENTS}}&lt;br /&gt;
===Client event functions===&lt;br /&gt;
{{Client_event_functions}}&lt;/div&gt;</summary>
		<author><name>Thisdp</name></author>
	</entry>
</feed>