feat(vpn): add VPN config when pressing the enter key in the wireguard name text input (#2209)
This commit is contained in:
parent
ee5b432e26
commit
0e307f3cf4
1 changed files with 2 additions and 1 deletions
|
|
@ -313,7 +313,8 @@ impl page::Page<crate::pages::Message> for Page {
|
|||
VpnDialog::WireGuardName(device, ..) => {
|
||||
let input = widget::text_input("", device.as_str()).on_input(|input| {
|
||||
Message::WireGuardDeviceInput(input.replace(|c: char| !c.is_alphanumeric(), ""))
|
||||
});
|
||||
})
|
||||
.on_submit(|_| Message::WireGuardConfig);
|
||||
|
||||
let primary_action =
|
||||
widget::button::suggested(fl!("connect")).on_press(Message::WireGuardConfig);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue