mirror of
https://github.com/rustdesk/rustdesk.git
synced 2025-12-12 02:57:22 +00:00
feat: web v2 keyboard (#9175)
Signed-off-by: fufesou <linlong1266@gmail.com>
This commit is contained in:
@@ -234,7 +234,7 @@ class RustdeskImpl {
|
||||
}
|
||||
|
||||
String getLocalKbLayoutType({dynamic hint}) {
|
||||
throw js.context.callMethod('getByName', ['option:local', 'kb_layout']);
|
||||
return js.context.callMethod('getByName', ['option:local', 'kb_layout']);
|
||||
}
|
||||
|
||||
Future<void> setLocalKbLayoutType(
|
||||
@@ -415,6 +415,17 @@ class RustdeskImpl {
|
||||
]));
|
||||
}
|
||||
|
||||
Future<void> sessionHandleFlutterRawKeyEvent(
|
||||
{required UuidValue sessionId,
|
||||
required String name,
|
||||
required int platformCode,
|
||||
required int positionCode,
|
||||
required int lockModes,
|
||||
required bool downOrUp,
|
||||
dynamic hint}) {
|
||||
throw UnimplementedError();
|
||||
}
|
||||
|
||||
void sessionEnterOrLeave(
|
||||
{required UuidValue sessionId, required bool enter, dynamic hint}) {
|
||||
throw UnimplementedError();
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import 'dart:js' as js;
|
||||
import 'dart:html' as html;
|
||||
|
||||
final isAndroid_ = false;
|
||||
final isIOS_ = false;
|
||||
@@ -11,3 +12,9 @@ final isWebDesktop_ = !js.context.callMethod('isMobile');
|
||||
final isDesktop_ = false;
|
||||
|
||||
String get screenInfo_ => js.context.callMethod('getByName', ['screen_info']);
|
||||
|
||||
final _userAgent = html.window.navigator.userAgent.toLowerCase();
|
||||
|
||||
final isWebOnWindows_ = _userAgent.contains('win');
|
||||
final isWebOnLinux_ = _userAgent.contains('linux');
|
||||
final isWebOnMacOS_ = _userAgent.contains('mac');
|
||||
|
||||
Reference in New Issue
Block a user