mirror of
https://git.hmsn.ink/flutter/vnc_viewer.git
synced 2026-03-19 15:55:06 +09:00
f11 전체 화면 추가
This commit is contained in:
@@ -85,12 +85,6 @@ class RemoteFrameBufferWidgetState extends State<RemoteFrameBufferWidget> {
|
||||
|
||||
if(keyEvent is! KeyDownEvent && keyEvent is! KeyUpEvent ) {
|
||||
return false;
|
||||
}
|
||||
if(keyEvent.logicalKey == LogicalKeyboardKey.f11) {
|
||||
if(keyEvent is KeyDownEvent) {
|
||||
windowManager.isFullScreen().then((flag) {windowManager.setFullScreen(!flag);});
|
||||
}
|
||||
return false;
|
||||
} else {
|
||||
_isolateSendPort.match(
|
||||
() {},
|
||||
@@ -435,9 +429,17 @@ class RemoteFrameBufferWidgetState extends State<RemoteFrameBufferWidget> {
|
||||
final bool down = args['down'];
|
||||
final int key = args['key'];
|
||||
final int vkCode = args['vkCode'];
|
||||
if(vkCode == 122) {
|
||||
if (down) {
|
||||
windowManager.isFullScreen().then((flag) {
|
||||
windowManager.setFullScreen(!flag);
|
||||
});
|
||||
}
|
||||
} else {
|
||||
_sendToVnc(key, vkCode, down);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void _sendToVnc(int key, int vkCode, bool down) {
|
||||
_isolateSendPort.match(
|
||||
|
||||
Reference in New Issue
Block a user