Canvas · Graphs and boards: a field hands focus back on Enter and Escape

writing::begin records the owner's focus, the mind map's or the tool
layer's, through forms::Editing::returning. The field keeps its words on
Enter's release and drops them on Escape, and both hand focus back, so
the map's arrows and the board's Backspace work at once after a write.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
ZacharyZhang-NYandClaude Opus 5.5 committed 2026-09-27 08:41:05 -04:00
1 parent bd0285bd37
commit 9170d47f8b
8 files changed
+81 -12

No files matched your search

+1
View File
@@ -355,6 +355,7 @@ impl RenderOnce for ToolLayer {
count: event.click_count,
shift: event.modifiers.shift,
side,
back: held_focus.clone(),
};
let gesture = pressed_with(
&press,