# Actions

### <mark style="color:purple;">Register Shortcut</mark>

Registers a global shortcut. See the [electron docs](https://www.electronjs.org/docs/latest/tutorial/keyboard-shortcuts) for a list of key codes & modifiers.

{% hint style="danger" %}
When the accelerator is already taken by other applications, this call will silently fail. This behavior is intended by operating systems, since they don't want applications to fight for global shortcuts.
{% endhint %}

***

### <mark style="color:purple;">Unregister Shortcut</mark>

Unregisters a global shortcut.

***

### <mark style="color:purple;">Unregister All Shortcuts</mark>

Unregisters All Global Shortcuts


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://deskifier.gitbook.io/deskifier/deskifier-bubble.io-docs/global-shortcuts-element/actions.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
