Fix not being able to enter . in domain field

This commit is contained in:
Joscha 2024-01-02 15:27:30 +01:00
parent 72310d87f5
commit 4e6e413f3d

View file

@ -70,7 +70,7 @@ impl ConnectState {
util::handle_editor_input_event(&mut self.name, event, keys, util::is_room_char)
}
Focus::Domain => {
util::handle_editor_input_event(&mut self.domain, event, keys, util::is_room_char)
util::handle_editor_input_event(&mut self.domain, event, keys, |c| c != '\n')
}
};