This commit is contained in:
rustdesk 2024-07-25 15:21:28 +08:00
parent baf70da2fe
commit bbdce8d57b
45 changed files with 677 additions and 641 deletions

View File

@ -130,12 +130,9 @@ List<TTextMenu> toolbarControls(BuildContext context, String id, FFI ffi) {
);
}
// paste
if (isMobile &&
pi.platform != kPeerPlatformAndroid &&
perms['keyboard'] != false &&
perms['clipboard'] != false) {
if (pi.platform != kPeerPlatformAndroid && perms['keyboard'] != false) {
v.add(TTextMenu(
child: Text(translate('Paste')),
child: Text(translate('Send clipboard keystrokes')),
onPressed: () async {
ClipboardData? data = await Clipboard.getData(Clipboard.kTextPlain);
if (data != null && data.text != null) {

View File

@ -630,5 +630,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("cancel-2fa-confirm-tip", ""),
("cancel-bot-confirm-tip", ""),
("About RustDesk", ""),
("Send clipboard keystrokes", ""),
].iter().cloned().collect();
}

View File

@ -630,5 +630,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("cancel-2fa-confirm-tip", ""),
("cancel-bot-confirm-tip", ""),
("About RustDesk", ""),
("Send clipboard keystrokes", ""),
].iter().cloned().collect();
}

View File

@ -630,5 +630,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("cancel-2fa-confirm-tip", ""),
("cancel-bot-confirm-tip", ""),
("About RustDesk", ""),
("Send clipboard keystrokes", ""),
].iter().cloned().collect();
}

View File

@ -630,5 +630,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("cancel-2fa-confirm-tip", ""),
("cancel-bot-confirm-tip", ""),
("About RustDesk", ""),
("Send clipboard keystrokes", ""),
].iter().cloned().collect();
}

View File

@ -630,5 +630,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("cancel-2fa-confirm-tip", "确定要取消双重认证吗?"),
("cancel-bot-confirm-tip", "确定要取消 Telegram 机器人吗?"),
("About RustDesk", ""),
("Send clipboard keystrokes", ""),
].iter().cloned().collect();
}

View File

@ -630,5 +630,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("cancel-2fa-confirm-tip", "Jste si jisti, že chcete zrušit 2FA?"),
("cancel-bot-confirm-tip", "Jste si jisti, že chcete zrušit bota Telegramu?"),
("About RustDesk", ""),
("Send clipboard keystrokes", ""),
].iter().cloned().collect();
}

View File

@ -630,5 +630,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("cancel-2fa-confirm-tip", ""),
("cancel-bot-confirm-tip", ""),
("About RustDesk", ""),
("Send clipboard keystrokes", ""),
].iter().cloned().collect();
}

View File

@ -630,5 +630,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("cancel-2fa-confirm-tip", "Sind Sie sicher, dass Sie 2FA abbrechen möchten?"),
("cancel-bot-confirm-tip", "Sind Sie sicher, dass Sie Telegram-Bot abbrechen möchten?"),
("About RustDesk", "Über RustDesk"),
("Send clipboard keystrokes", ""),
].iter().cloned().collect();
}

View File

@ -630,5 +630,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("cancel-2fa-confirm-tip", "Είστε βέβαιοι ότι θέλετε να ακυρώσετε το 2FA;"),
("cancel-bot-confirm-tip", "Είστε βέβαιοι ότι θέλετε να ακυρώσετε το Telegram bot;"),
("About RustDesk", ""),
("Send clipboard keystrokes", ""),
].iter().cloned().collect();
}

View File

@ -630,5 +630,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("cancel-2fa-confirm-tip", ""),
("cancel-bot-confirm-tip", ""),
("About RustDesk", ""),
("Send clipboard keystrokes", ""),
].iter().cloned().collect();
}

View File

@ -630,5 +630,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("cancel-2fa-confirm-tip", "¿Seguro que quieres cancelar 2FA?"),
("cancel-bot-confirm-tip", "¿Seguro que quieres cancelar el bot de Telegram?"),
("About RustDesk", ""),
("Send clipboard keystrokes", ""),
].iter().cloned().collect();
}

View File

@ -630,5 +630,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("cancel-2fa-confirm-tip", ""),
("cancel-bot-confirm-tip", ""),
("About RustDesk", ""),
("Send clipboard keystrokes", ""),
].iter().cloned().collect();
}

View File

@ -551,7 +551,6 @@ lazy_static::lazy_static! {
("Test", "Probatu"),
("display_is_plugged_out_msg", "Pantaila deskonektatuta dago, aldatu nagusira."),
("No displays", "Ez dago pantailarik"),
("elevated_switch_display_msg", "Aldatu pantaila nagusira pantaila ugari ez daudelako goi mailako moduan onartuta"),
("Open in new window", "Ireki leiho berrian"),
("Show displays as individual windows", "Erakutsi pantailak banakako leiho gisa"),
("Use all my displays for the remote session", "Erabili nire pantaila guztiak urruneko saiorako"),
@ -570,10 +569,8 @@ lazy_static::lazy_static! {
("Enter privacy mode", "Sartu modu pribatuan"),
("Exit privacy mode", "Irten modu pribatutik"),
("idd_not_support_under_win10_2004_tip", "Zeharkako pantaila kudeatzailea ez dago onartuta. Windows 10, 2004 bertsioa edo berriagoa behar da."),
("switch_display_elevated_connections_tip", "Pantaila nagusia ez den batera aldatzea ez da onartzen goi mailako moduan hainbat konexio daudenean. Mesedez, saiatu berriro instalatu ondoren hainbat pantaila kontrolatu nahi badituzu."),
("input_source_1_tip", "Sarrera-iturri 1"),
("input_source_2_tip", "Sarrera-iturri 2"),
("capture_display_elevated_connections_tip", "Pantaila anitz harrapatzea goi mailako pribilegioekin ez da onartzen. Mesedez, saiatu berriro instalatu ondoren hainbat pantaila kontrolatu nahi badituzu."),
("Swap control-command key", "Aldatu kontrol-komando teklak"),
("swap-left-right-mouse", "Aldatu saguaren ezker-eskuin botoiak"),
("2FA code", "2FA kodea"),
@ -630,7 +627,9 @@ lazy_static::lazy_static! {
("Telegram bot", "Telegrameko bot-a"),
("enable-bot-tip", "Ezaugarri hau gaitzen baduzu, zure bot-etik 2FA kodea jaso dezakezu. Konexio jakinarazpenetarako ere balio dezake."),
("enable-bot-desc", "1, Ireki txat bat @BotFather bot-arekin.\n2, Bidali \"/newbot\" agindua. Token bat jasoko duzu urrats honen ostean.\n3, Hasi txat bat zure bot berriarekin. Bidali mezu bat aurreko barra batekin (\"/\") \"/kaixo\" bezala gaitzeko.\n"),
("cancel-2fa-confirm-tip", ""),
("cancel-bot-confirm-tip", ""),
("About RustDesk", ""),
("Send clipboard keystrokes", ""),
].iter().cloned().collect();
}

View File

@ -630,5 +630,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("cancel-2fa-confirm-tip", ""),
("cancel-bot-confirm-tip", ""),
("About RustDesk", ""),
("Send clipboard keystrokes", ""),
].iter().cloned().collect();
}

View File

@ -630,5 +630,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("cancel-2fa-confirm-tip", ""),
("cancel-bot-confirm-tip", ""),
("About RustDesk", ""),
("Send clipboard keystrokes", ""),
].iter().cloned().collect();
}

View File

@ -630,5 +630,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("cancel-2fa-confirm-tip", ""),
("cancel-bot-confirm-tip", ""),
("About RustDesk", ""),
("Send clipboard keystrokes", ""),
].iter().cloned().collect();
}

View File

@ -630,5 +630,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("cancel-2fa-confirm-tip", ""),
("cancel-bot-confirm-tip", ""),
("About RustDesk", ""),
("Send clipboard keystrokes", ""),
].iter().cloned().collect();
}

View File

@ -630,5 +630,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("cancel-2fa-confirm-tip", ""),
("cancel-bot-confirm-tip", ""),
("About RustDesk", ""),
("Send clipboard keystrokes", ""),
].iter().cloned().collect();
}

View File

@ -630,5 +630,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("cancel-2fa-confirm-tip", ""),
("cancel-bot-confirm-tip", ""),
("About RustDesk", ""),
("Send clipboard keystrokes", ""),
].iter().cloned().collect();
}

View File

@ -630,5 +630,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("cancel-2fa-confirm-tip", "Sei sicuro di voler annullare 2FA?"),
("cancel-bot-confirm-tip", "Sei sicuro di voler annulare Telegram?"),
("About RustDesk", "Info su RustDesk"),
("Send clipboard keystrokes", ""),
].iter().cloned().collect();
}

View File

@ -630,6 +630,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("cancel-2fa-confirm-tip", "本当に二要素認証をキャンセルしますか?"),
("cancel-bot-confirm-tip", "本当にTelegram Botをキャンセルしますか"),
("About RustDesk", "RustDeskについて"),
("Send clipboard keystrokes", ""),
].iter().cloned().collect();
}

View File

@ -630,5 +630,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("cancel-2fa-confirm-tip", ""),
("cancel-bot-confirm-tip", ""),
("About RustDesk", ""),
("Send clipboard keystrokes", ""),
].iter().cloned().collect();
}

View File

@ -630,5 +630,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("cancel-2fa-confirm-tip", ""),
("cancel-bot-confirm-tip", ""),
("About RustDesk", ""),
("Send clipboard keystrokes", ""),
].iter().cloned().collect();
}

View File

@ -630,5 +630,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("cancel-2fa-confirm-tip", ""),
("cancel-bot-confirm-tip", ""),
("About RustDesk", ""),
("Send clipboard keystrokes", ""),
].iter().cloned().collect();
}

View File

@ -630,5 +630,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("cancel-2fa-confirm-tip", "Vai tiešām vēlaties atcelt 2FA?"),
("cancel-bot-confirm-tip", "Vai tiešām vēlaties atcelt Telegram robotu?"),
("About RustDesk", ""),
("Send clipboard keystrokes", ""),
].iter().cloned().collect();
}

View File

@ -630,5 +630,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("cancel-2fa-confirm-tip", ""),
("cancel-bot-confirm-tip", ""),
("About RustDesk", ""),
("Send clipboard keystrokes", ""),
].iter().cloned().collect();
}

View File

@ -630,5 +630,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("cancel-2fa-confirm-tip", "Weet je zeker dat je 2FA wilt annuleren?"),
("cancel-bot-confirm-tip", "Weet je zeker dat je de Telegram-bot wilt annuleren?"),
("About RustDesk", ""),
("Send clipboard keystrokes", ""),
].iter().cloned().collect();
}

View File

@ -630,5 +630,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("cancel-2fa-confirm-tip", ""),
("cancel-bot-confirm-tip", ""),
("About RustDesk", ""),
("Send clipboard keystrokes", ""),
].iter().cloned().collect();
}

View File

@ -630,5 +630,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("cancel-2fa-confirm-tip", ""),
("cancel-bot-confirm-tip", ""),
("About RustDesk", ""),
("Send clipboard keystrokes", ""),
].iter().cloned().collect();
}

View File

@ -630,5 +630,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("cancel-2fa-confirm-tip", ""),
("cancel-bot-confirm-tip", ""),
("About RustDesk", ""),
("Send clipboard keystrokes", ""),
].iter().cloned().collect();
}

View File

@ -630,5 +630,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("cancel-2fa-confirm-tip", ""),
("cancel-bot-confirm-tip", ""),
("About RustDesk", ""),
("Send clipboard keystrokes", ""),
].iter().cloned().collect();
}

View File

@ -630,5 +630,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("cancel-2fa-confirm-tip", "Отключить двухфакторную аутентификацию?"),
("cancel-bot-confirm-tip", "Отключить Telegram-бота?"),
("About RustDesk", ""),
("Send clipboard keystrokes", ""),
].iter().cloned().collect();
}

View File

@ -630,5 +630,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("cancel-2fa-confirm-tip", "Ste si istí, že chcete zrušiť službu 2FA?"),
("cancel-bot-confirm-tip", "Ste si istí, že chcete zrušiť bota Telegramu?"),
("About RustDesk", ""),
("Send clipboard keystrokes", ""),
].iter().cloned().collect();
}

View File

@ -630,5 +630,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("cancel-2fa-confirm-tip", ""),
("cancel-bot-confirm-tip", ""),
("About RustDesk", ""),
("Send clipboard keystrokes", ""),
].iter().cloned().collect();
}

View File

@ -630,5 +630,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("cancel-2fa-confirm-tip", ""),
("cancel-bot-confirm-tip", ""),
("About RustDesk", ""),
("Send clipboard keystrokes", ""),
].iter().cloned().collect();
}

View File

@ -630,5 +630,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("cancel-2fa-confirm-tip", ""),
("cancel-bot-confirm-tip", ""),
("About RustDesk", ""),
("Send clipboard keystrokes", ""),
].iter().cloned().collect();
}

View File

@ -630,5 +630,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("cancel-2fa-confirm-tip", ""),
("cancel-bot-confirm-tip", ""),
("About RustDesk", ""),
("Send clipboard keystrokes", ""),
].iter().cloned().collect();
}

View File

@ -630,5 +630,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("cancel-2fa-confirm-tip", ""),
("cancel-bot-confirm-tip", ""),
("About RustDesk", ""),
("Send clipboard keystrokes", ""),
].iter().cloned().collect();
}

View File

@ -630,5 +630,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("cancel-2fa-confirm-tip", ""),
("cancel-bot-confirm-tip", ""),
("About RustDesk", ""),
("Send clipboard keystrokes", ""),
].iter().cloned().collect();
}

View File

@ -630,5 +630,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("cancel-2fa-confirm-tip", ""),
("cancel-bot-confirm-tip", ""),
("About RustDesk", ""),
("Send clipboard keystrokes", ""),
].iter().cloned().collect();
}

View File

@ -630,5 +630,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("cancel-2fa-confirm-tip", "確定要取消二步驟驗證嗎?"),
("cancel-bot-confirm-tip", "確定要取消 Telegram 機器人嗎?"),
("About RustDesk", ""),
("Send clipboard keystrokes", ""),
].iter().cloned().collect();
}

View File

@ -630,5 +630,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("cancel-2fa-confirm-tip", ""),
("cancel-bot-confirm-tip", ""),
("About RustDesk", ""),
("Send clipboard keystrokes", ""),
].iter().cloned().collect();
}

View File

@ -630,5 +630,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("cancel-2fa-confirm-tip", ""),
("cancel-bot-confirm-tip", ""),
("About RustDesk", ""),
("Send clipboard keystrokes", ""),
].iter().cloned().collect();
}

View File

@ -779,7 +779,6 @@ impl<T: InvokeUiSession> Session<T> {
}
}
// flutter only TODO new input
pub fn input_string(&self, value: &str) {
let mut key_event = KeyEvent::new();
key_event.set_seq(value.to_owned());