Fix modifier key logic for edit predictions preview with completions (#24709)

Release Notes:

- N/A
This commit is contained in:
Michael Sloan 2025-02-11 20:26:51 -07:00 committed by GitHub
parent 754560876b
commit fc86e7cd51
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -5205,7 +5205,7 @@ impl Editor {
return;
};
if &accept_keystroke.modifiers == modifiers {
if &accept_keystroke.modifiers == modifiers && accept_keystroke.modifiers.modified() {
if matches!(
self.edit_prediction_preview,
EditPredictionPreview::Inactive