multiAI Summary Pending
tauri-app-global-shortcut
Register system-wide keyboard shortcuts using the Tauri v2 global-shortcut plugin. Use when adding global hotkeys that work outside app focus, handling shortcut conflicts, or triggering app focus/commands via keyboard shortcuts.
223 stars
Installation
Claude Code / Cursor / Codex
$curl -o ~/.claude/skills/tauri-app-global-shortcut/SKILL.md --create-dirs "https://raw.githubusercontent.com/partme-ai/full-stack-skills/main/skills/tauri-skills/tauri-app-global-shortcut/SKILL.md"
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/tauri-app-global-shortcut/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How tauri-app-global-shortcut Compares
| Feature / Agent | tauri-app-global-shortcut | Standard Approach |
|---|---|---|
| Platform Support | multi | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Register system-wide keyboard shortcuts using the Tauri v2 global-shortcut plugin. Use when adding global hotkeys that work outside app focus, handling shortcut conflicts, or triggering app focus/commands via keyboard shortcuts.
Which AI agents support this skill?
This skill is compatible with multi.
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
## When to use this skill
**ALWAYS use this skill when the user mentions:**
- Global hotkeys or keyboard shortcuts outside app focus
- Shortcut conflict detection and resolution
- Triggering app focus or commands via keyboard shortcuts
**Trigger phrases include:**
- "global shortcut", "hotkey", "keyboard shortcut", "keybinding", "accelerator"
## How to use this skill
1. **Install the global-shortcut plugin**:
```bash
cargo add tauri-plugin-global-shortcut
```
2. **Register the plugin** in your Tauri builder:
```rust
tauri::Builder::default()
.plugin(tauri_plugin_global_shortcut::Builder::new().build())
```
3. **Configure capabilities** in `src-tauri/capabilities/default.json`:
```json
{ "permissions": ["global-shortcut:allow-register", "global-shortcut:allow-unregister"] }
```
4. **Register shortcuts from the frontend**:
```typescript
import { register, unregister } from '@tauri-apps/plugin-global-shortcut';
await register('CommandOrControl+Shift+K', (event) => {
if (event.state === 'Pressed') {
console.log('Shortcut triggered!');
}
});
```
5. **Handle conflicts** by catching registration errors when another app holds the shortcut
6. **Unregister shortcuts** on app exit to clean up system-level registrations
## Outputs
- Global shortcut registration with conflict handling
- Shortcut-to-action routing pattern
- Cleanup on app exit
## References
- https://v2.tauri.app/plugin/global-shortcut/
## Keywords
tauri global shortcut, hotkey, keyboard shortcut, keybinding, accelerator