terminal: Make IME work with tab and enter keys (#27572)

Ishige created

… in the terminal.

Closes #23003

Release Notes:

- N/A

## Before fix:


https://github.com/user-attachments/assets/249ec62d-1461-4551-87b2-4259dba171f2


## After fix:



https://github.com/user-attachments/assets/2db624a0-8035-4260-9b2e-0cee83662b84

Change summary

crates/terminal_view/src/terminal_element.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Detailed changes

crates/terminal_view/src/terminal_element.rs 🔗

@@ -998,7 +998,7 @@ impl InputHandler for TerminalInputHandler {
     }
 
     fn marked_text_range(&mut self, _: &mut Window, _: &mut App) -> Option<std::ops::Range<usize>> {
-        None
+        Some(0..0)
     }
 
     fn text_for_range(