documents: a dropped block hands its focus to the document
An edit past an open block wrote it back and dropped its input while it held focus, so focus fell to the window root and Undo reached nothing. The next render passes such focus to the document. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
24ffc45c6b
commit
6c2d28c56e
7 files changed
+42
-4
No files matched your search
@@ -195,6 +195,7 @@ impl MarkdownDocument {
|
||||
|
||||
impl Render for MarkdownDocument {
|
||||
fn render(&mut self, window: &mut Window, cx: &mut Context<Self>) -> impl IntoElement {
|
||||
self.take_orphan(window, cx);
|
||||
// A top line asked before its text was read.
|
||||
self.place_top(window, cx);
|
||||
self.show_waiting(window, cx);
|
||||
|
||||
Reference in new issue
Block a user