pub fn target(app: &AppHandle, redo: bool) -> Option<Target>Expand description
Where Ctrl+Z (redo false) or Ctrl+Shift+Z goes now: the focused
local scope; while a modal is open, nothing else; else the owner’s active scope with the newest head (for
a redo, the scope last undone that can still redo, else the first
active one that can). None: no history at all.