Donner 0.8.0-pre
Embeddable browser-grade SVG2 engine
Loading...
Searching...
No Matches
KeyboardShortcutPolicy.h File Reference

Namespaces

namespace  donner
 Top-level Donner namespace, which is split into different sub-namespaces such as donner::svg and donner::css.

Functions

bool donner::editor::CanDeleteSelectedElementsFromShortcut (bool deleteKey, bool hasSelection, bool anyPopupOpen, bool sourcePaneFocused)
 Canvas-level delete should fire whenever a selection exists, no modal is open, and the source pane is not actively focused. ImGuiIO::WantCaptureKeyboard is too broad because non-text UI panes also set it.
bool donner::editor::CanToggleSourceFocusModeFromShortcut (bool enterKey, bool commandDown, bool anyPopupOpen)
 Source focus mode can be toggled globally with Cmd/Ctrl+Enter as long as no modal popup owns keyboard input.