Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incremental markdown parsing and various fixes #2776

Merged
merged 19 commits into from
Feb 1, 2025
Merged
Changes from 1 commit
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Avoid capturing mouse press when text_editor is unfocused
hecrj committed Jan 30, 2025
commit a7bc1e7da4a456b6fa53a7f9f86a6f1f0a172029
6 changes: 4 additions & 2 deletions widget/src/text_editor.rs
Original file line number Diff line number Diff line change
@@ -768,6 +768,10 @@ where
}
}

if !matches!(binding, Binding::Unfocus) {
shell.capture_event();
}

apply_binding(
binding,
self.content,
@@ -780,8 +784,6 @@ where
if let Some(focus) = &mut state.focus {
focus.updated_at = Instant::now();
}

shell.capture_event();
}
}
}