global-keyboard-shortcuts
Reactive icon

Global Keyboard Shortcuts

Stable version 1.0.0 (Compatible with OutSystems 11)
Uploaded
 on 10 Sep (6 hours ago)
 by 
0.0
 (0 ratings)
global-keyboard-shortcuts

Global Keyboard Shortcuts

Details
A drop-in block that adds keyboard shortcuts to any OutSystems Reactive Web app. Register Ctrl+S, Esc, /, Ctrl+K — anything you like — and get a single event when the user presses one. Ignores keystrokes while typing in inputs by default, prevents browser defaults (no more "Save Page As" popping up), and cleans itself up on navigation. Pure client-side, no dependencies.
Read more

Overview

Power users work with keyboards, and every desktop-class app supports shortcuts. Ctrl+S to save, Esc to close a modal, / to focus search, Ctrl+K to open a command palette — these are the small details that make an app feel finished. OutSystems doesn't ship a first-class way to wire them, so most apps just skip them.

This block fixes that. You give it a list of shortcut strings, handle its OnShortcut event, and switch on the shortcut name to run whatever action you want. That's the whole integration.

Key features

  • Register any number of shortcuts as a simple Text list.
  • One OnShortcut(Shortcut) event fires with the matched shortcut string.
  • Ignores typing context by default — shortcuts don't fire while the user is in an input, textarea, or contenteditable, unless you explicitly enable that.
  • Prevents browser defaults so Ctrl+S doesn't trigger "Save Page As," Ctrl+K doesn't open the browser search bar, etc.
  • Modifier keys handled naturally: ctrl, alt, shift, meta (Cmd on Mac).
  • Friendly aliases: esc, space, up, down, left, right.
  • Cleans up its listener on block destroy — no leaked handlers across navigation.
  • No dependencies, no server calls.
Release notes (1.0.0)
License (1.0.0)
Reviews (0)
Team
Other assets in this category