const_hoisted_1=/* @__PURE__ */createStaticVNode('<h1id="secure"tabindex="-1">Secure<aclass="header-anchor"href="#secure"aria-label="Permalink to "Secure""></a></h1><p>Thesecurefeatureaimstopreventunwantedinteractionwithoutuserintervention.</p><divclass="tipcustom-block"><pclass="custom-block-title">TIP</p><p>Securedoes<strong>not</strong>currentlyimplementencryption/decryption/etcandshouldnotbeareplacementwhereastronghardware/softwarebasedsolutionisrequired.</p></div><h3id="unlock-sequence"tabindex="-1">Unlocksequence<aclass="header-anchor"href="#unlock-sequence"aria-label="Permalinkto"Unlocksequence""></a></h3><p>Tounlock,theusermustperformasetofactions.Thiscanoptionallybeconfiguredtobemultiplekeys.</p><ul><li>Whileunlockingallkeyboardinputisignored</li><li>Incorrectattemptswillrevertbacktothepreviouslylockedstate</li></ul><h3id="automatic-locking"tabindex="-1">AutomaticLocking<aclass="header-anchor"href="#automatic-locking"aria-label="Permalinkto"AutomaticLocking""></a></h3><p>Onceunlocked,thekeyboardwillrevertbacktoalockedstateaftertheconfiguredtimeout.Thetimeoutcanberefreshedbyusingthe<code>secure_activity_event</code>function,forexamplefromoneofthevarious<ahref="./../custom_quantum_functions">hooks</a>.</p><h2id="usage"tabindex="-1">Usage<aclass="header-anchor"href="#usage"aria-label="Permalinkto"Usage""></a></h2><p>Addthefollowingtoyour<code>rules.mk</code>:</p><divclass="language-makevp-adaptive-theme"><buttontitle="CopyCode"class="copy"></button><spanclass="lang">make</span><preclass="shikishiki-themesgithub-lightgithub-darkvp-code"><code><spanclass="line"><spanstyle="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">SECURE_ENABLE=yes</span></span></code></pre></div><h2id="keycodes"tabindex="-1">Keycodes<aclass="header-anchor"href="#keycodes"aria-label="Permalinkto"Keycodes""></a></h2><table><thead><tr><th>Key</th><th>Aliases</th><th>Description</th></tr></thead><tbody><tr><td><code>QK_SECURE_LOCK</code></td><td><code>SE_LOCK</code></td><td>Revertbacktoalockedstate</td></tr><tr><td><code>QK_SECURE_UNLOCK</code></td><td><code>SE_UNLK</code></td><td>Forcesunlockwithoutperformingaunlocksequence</td></tr><tr><td><code>QK_SECURE_TOGGLE</code></td><td><code>SE_TOGG</code></td><td>Toggledirectlybetweenlockedandunlockwithoutperformingaunlocksequence</td></tr><tr><td><code>QK_SECURE_REQUEST</code></td><td><code>SE_REQ</code></td><td>Requestthatuserperformtheunlocksequence</td></tr></tbody></table><h2id="configuration"tabindex="-1">Configuration<aclass="header-anchor"href="#configuration"aria-label="Permalinkto"Configuration""></a></h2><table><thead><tr><th>Define</th><th>Default</th><th>Description</th></tr></thead><tbody><tr><td><code>SECURE_UNLOCK_TIMEOUT</code></td><td><code>5000</code></td><td>Timeoutfortheusertoperformtheconfiguredunlocksequence-<code>0</code>todisable</td></tr><tr><td><code>SECURE_IDLE_TIMEOUT</code></td><td><code>60000</code></td><td>Timeoutwhileunlockedbeforereturningtolocked-<code>0</code>todisable</td></tr><tr><td><code>SECURE_UNLOCK_SEQUENCE</code></td><td><code>{{0,0}}</code></td><td>Arrayofmatrixlocationsdescribingasequentialsequenceofkeypresses</td></tr></tbody></table><h2id="functions"tabindex="-1">Functions<aclass="header-anchor"href="#functions"aria-label="Permalinkto"Functions""></a></h2><table><thead><tr><th>Function</th><th>Description</th></tr></thead><tbody><tr><td><code>secure_is_locked()</code></td><td>Checkifthedeviceiscurrentlylocked</td></tr><tr><td><code>secure_is_unlocking()</code></td><td>Checkifanunlocksequenceiscurrentlyinprogress</td></tr><tr><td><code>secure_is_unlocked()</code></td><td>Checkifthedeviceiscurrentlyunlocked</td></tr><tr><td><code>secure_lock()</code></td><td>Lockdownthedevice</td></tr><tr><td><code>secure_unl