diff --git a/ports/servoshell/minibrowser.rs b/ports/servoshell/minibrowser.rs index 4fe9a6c4b12..0ebccaab9bd 100644 --- a/ports/servoshell/minibrowser.rs +++ b/ports/servoshell/minibrowser.rs @@ -66,6 +66,10 @@ impl Minibrowser { if ui.input(|i| i.clone().consume_key(Modifiers::COMMAND, Key::L)) { location_field.request_focus(); } + if location_field.lost_focus() && ui.input(|i| i.clone().key_pressed(Key::Enter)) { + event_queue.borrow_mut().push(MinibrowserEvent::Go); + location_dirty.set(false); + } }, ); });