MARKETPLACE
PLUGINS
KEYBOARD SHORTCUTS PRO
Keyboard Shortcuts Pro logo

Keyboard Shortcuts Pro

Published July 2025
   •    Updated this week

Plugin details

The Keyboard Shortcuts Pro plugin enables developers to implement professional-grade keyboard shortcuts in their Bubble applications, delivering the responsive user experience found in enterprise software. The plugin supports complex key combinations with modifier keys (Ctrl/Cmd, Alt, Shift) and provides real-time event handling with optimized performance through cached property processing and efficient DOM event management.
Usage Features:
- Create custom keyboard shortcuts using single keys or modifier combinations (Ctrl+S, Alt+Enter, etc.)
- Cross-platform compatibility with automatic Ctrl (Windows/Linux) and Cmd (Mac) detection
- Real-time shortcut enabling/disabling through workflow actions for dynamic user interfaces
- Performance-optimized event handling with pre-computed key matching and minimal DOM overhead
- Conflict prevention system to override browser default behaviors when needed
- State management for tracking active shortcuts and providing user feedback
- Global or element-specific shortcut scoping for precise control over activation contexts
- Visual feedback integration with exposed states for building shortcut help systems
- Zero-lag response times through cached modifier checking and early exit optimization
- Memory-efficient cleanup with proper event listener management and garbage collection

Free

For everyone

5.0 stars   •   1 ratings
31 installs  
This plugin does not collect or track your personal data.

Other actions

Platform

Web

Contributor details

Tomatode logo
Tomatode
Joined 2024   •   1 Plugin
View contributor profile

Instructions

Quick Setup Guide
1. Add the Element
Drag the "Keyboard Shortcut Handler" element onto your page. The element is invisible and can be placed anywhere - it will automatically handle keyboard events for the entire page.

2. Configure Your Shortcut
In the Property Editor:
- Shortcut Key: Enter a single key (e.g., "s", "Enter", "Escape", "ArrowUp")
- Cmd/Ctrl Modifier: Check this for Ctrl (Windows) or Cmd (Mac) combinations
- Alt/Shift Modifiers: Add additional modifier keys as needed
- Prevent Default: Enable to override browser shortcuts (recommended)
- Description: Add a description for user help systems

3. Create the Workflow
- Click "Start/Edit workflow" on the element
- Select the "When Shortcut is pressed" event
- Add your desired actions (save data, show popup, navigate, etc.)

Common Shortcut Examples:
- Save: Key="s" + Cmd/Ctrl ✓
- Search: Key="k" + Cmd/Ctrl ✓
- New Item: Key="n" + Cmd/Ctrl ✓
- Quick Menu: Key="/" (no modifiers)
- Cancel: Key="Escape" (no modifiers)

4. Advanced Features
Dynamic Control: Use the "Enable Shortcut", "Disable Shortcut", and "Toggle Shortcut" actions in workflows to control shortcuts based on user context or application state.
State Management: Access the "Shortcuts Active", "Last Triggered Shortcut", and "Shortcut Description" states to build user feedback systems and shortcut help overlays.
Multiple Shortcuts: Add multiple Keyboard Shortcut Handler elements for different key combinations. Each element operates independently with optimized performance.

5. Best Practices
- Use standard conventions: Ctrl+S for save, Ctrl+K for search, Escape for cancel
- Test on both Windows and Mac to ensure cross-platform consistency
- Provide visual cues about available shortcuts using the exposed states
- Enable "Prevent Default" for shortcuts that might conflict with browser functions
- Group related shortcuts with consistent modifier patterns for user familiarity

6. Technical Notes
The plugin uses optimized event handling with cached property processing to ensure zero-lag performance. Key matching is performed through early exit patterns, and modifier states are pre-computed to minimize runtime overhead. Event listeners use passive:false configuration to support preventDefault functionality while maintaining optimal performance characteristics.

Types

This plugin can be found under the following types:
Background Services   •   Element   •   Event   •   Action

Categories

This plugin can be found under the following categories:

Resources

Support contact
Tutorial

Rating and reviews

Average rating (5.0)

Super handy little plugin!
July 21st, 2025
Bubble