Skip to content

Commit

Permalink
Update builder.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
rustbasic authored Sep 27, 2024
1 parent 2fa5945 commit 175d0d9
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions crates/egui/src/widgets/text_edit/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -532,11 +532,6 @@ impl<'t> TextEdit<'t> {
});
let mut state = TextEditState::load(ui.ctx(), id).unwrap_or_default();

let viewport_has_focus = ui.input(|i| i.focused);
if !viewport_has_focus {
ui.memory_mut(|mem| mem.surrender_focus(id));
}

// On touch screens (e.g. mobile in `eframe` web), should
// dragging select text, or scroll the enclosing [`ScrollArea`] (if any)?
// Since currently copying selected text in not supported on `eframe` web,
Expand Down

0 comments on commit 175d0d9

Please sign in to comment.