mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-25 20:14:31 +01:00
A dock panel's OS window gets its keys alone, so an Escape pressed there with nothing focused became that window's Cancel, which no app code reads: a command started from a floated palette could not be cancelled. The end hook hands a Cancel left in such a window (`WindowSpec::hands_on_cancel`) to the window it was opened from, which reads it as its own in its next pass. A popup or a modal open in the floated window keeps the Escape, and a modal that opened meanwhile drops it.