<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
	<id>https://rage.grandroleplay.ru/index.php?action=history&amp;feed=atom&amp;title=Keys%3A%3Aunbind</id>
	<title>Keys::unbind - История изменений</title>
	<link rel="self" type="application/atom+xml" href="https://rage.grandroleplay.ru/index.php?action=history&amp;feed=atom&amp;title=Keys%3A%3Aunbind"/>
	<link rel="alternate" type="text/html" href="https://rage.grandroleplay.ru/index.php?title=Keys::unbind&amp;action=history"/>
	<updated>2026-07-24T20:50:51Z</updated>
	<subtitle>История изменений этой страницы в вики</subtitle>
	<generator>MediaWiki 1.43.9</generator>
	<entry>
		<id>https://rage.grandroleplay.ru/index.php?title=Keys::unbind&amp;diff=10602&amp;oldid=prev</id>
		<title>imported&gt;Sander в 12:46, 15 января 2025</title>
		<link rel="alternate" type="text/html" href="https://rage.grandroleplay.ru/index.php?title=Keys::unbind&amp;diff=10602&amp;oldid=prev"/>
		<updated>2025-01-15T12:46:03Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;This function unbinds the key.&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;keycode&amp;#039;&amp;#039;&amp;#039; - Code of key (Hexadecimal).&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;keyhold&amp;#039;&amp;#039;&amp;#039; - Unbind the binds with keyhold-value.&lt;br /&gt;
&lt;br /&gt;
===Optional Arguments===&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;handler&amp;#039;&amp;#039;&amp;#039; - Only unbind this handler.&lt;br /&gt;
&lt;br /&gt;
[https://msdn.microsoft.com/en-us/library/windows/desktop/dd375731 Keycodes can be found here]&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
{{ClientSide}}&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
function handler() {&lt;br /&gt;
	mp.gui.chat.push(&amp;quot;F2 was pressed&amp;quot;);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
function toggle_keybind(state) {&lt;br /&gt;
	state&lt;br /&gt;
		? mp.keys.bind(0x71, true, handler); /** binds F2 to the handler fn */&lt;br /&gt;
		: mp.keys.unbind(0x71, true, handler);  /** unbinds the handler from F2 key */&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
{{Keys_functions_c}}&lt;/div&gt;</summary>
		<author><name>imported&gt;Sander</name></author>
	</entry>
</feed>