Pulp 1.88.0
Cross-platform audio plugin framework
Loading...
Searching...
No Matches
pulp::view::DefaultShortcutCandidate Struct Reference

One default-binding emission produced by the source heuristic. More...

#include <design_shortcuts.hpp>

Public Attributes

DefaultShortcutPattern pattern
std::string target
 Component name / identifier that won the match — for traceability in shortcuts.json and for the developer's mental model.
std::string confidence
 "high" (≥3 signals) or "medium" (exactly 2).
std::vector< std::string > signals
 Source signals that fired, in order.

Detailed Description

One default-binding emission produced by the source heuristic.

A DefaultShortcut is appended into CodeGenOptions::shortcuts as a DetectedShortcut (with pattern = "default:<name>") so it flows through the V2 codegen path with no fork — same registerShortcut + synthetic-keydown thunk as an extracted shortcut.

Member Data Documentation

◆ confidence

std::string pulp::view::DefaultShortcutCandidate::confidence

"high" (≥3 signals) or "medium" (exactly 2).

The detector only emits bindings for high+medium — anything weaker is dropped.

◆ pattern

DefaultShortcutPattern pulp::view::DefaultShortcutCandidate::pattern

◆ signals

std::vector<std::string> pulp::view::DefaultShortcutCandidate::signals

Source signals that fired, in order.

Surfaced in shortcuts.json so a reviewer can audit the heuristic.

◆ target

std::string pulp::view::DefaultShortcutCandidate::target

Component name / identifier that won the match — for traceability in shortcuts.json and for the developer's mental model.


The documentation for this struct was generated from the following file: