diff --git a/crates/editor/src/editor.rs b/crates/editor/src/editor.rs index fdcbb87522..7118f3c0ff 100644 --- a/crates/editor/src/editor.rs +++ b/crates/editor/src/editor.rs @@ -5888,6 +5888,12 @@ impl View for Editor { } fn selected_text_range(&self, cx: &AppContext) -> Option> { + // Prevent the IME menu from appearing when holding down an alphabetic key + // while input is disabled. + if !self.input_enabled { + return None; + } + let range = self.selections.newest::(cx).range(); Some(range.start.0..range.end.0) }