pub fn needs_view(app: &AppHandle, redo: bool) -> boolExpand 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).