Skip to main content

needs_view

Function needs_view 

Source
pub fn needs_view(app: &AppHandle, redo: bool) -> bool
Expand description

Whether, under Routing::Focus, Ctrl+Z (redo false) or Ctrl+Shift+Z goes nowhere only because no view was focused yet in the window, while some scope of the owner has a step to undo (or redo): the keys and the Edit menu stay live to say why (undoNeedsView, redoNeedsView).