We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fa93fcd commit 7cba833Copy full SHA for 7cba833
src/query.rs
@@ -252,6 +252,8 @@ impl RenderOnce for TextInput {
252
}
253
_ => {}
254
255
+ } else if keystroke.as_str() == "enter" && !ev.keystroke.modifiers.shift {
256
+ //
257
} else if let Some(ime_key) = ime_key {
258
editor
259
.text
@@ -300,16 +302,6 @@ impl RenderOnce for TextInput {
300
302
editor.selection.end = editor.selection.start;
301
303
304
- "enter" => {
- if ev.keystroke.modifiers.shift {
305
- editor.text.insert(
306
- editor.char_range_to_text_range(&editor.text).start,
307
- '\n',
308
- );
309
- let i = editor.selection.start + 1;
310
- editor.selection = i..i;
311
- }
312
313
314
};
315
0 commit comments