mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-04-06 07:31:30 +03:00
refactor: keyboard of client
This commit is contained in:
@@ -692,10 +692,11 @@ class _RemotePageState extends State<RemotePage> {
|
||||
}
|
||||
|
||||
void changePhysicalKeyboardInputMode() async {
|
||||
var current = await bind.sessionGetKeyboardName(id: widget.id);
|
||||
var current = await bind.sessionGetKeyboardMode(id: widget.id) ?? "legacy";
|
||||
gFFI.dialogManager.show((setState, close) {
|
||||
void setMode(String? v) async {
|
||||
await bind.sessionSetKeyboardMode(id: widget.id, keyboardMode: v ?? '');
|
||||
await bind.sessionPeerOption(
|
||||
id: widget.id, name: "keyboard-mode", value: v ?? "");
|
||||
setState(() => current = v ?? '');
|
||||
Future.delayed(Duration(milliseconds: 300), close);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user