From b05c778fcc4c7a46bb55b8614961d2863c4349bb Mon Sep 17 00:00:00 2001 From: bangae1 Date: Sun, 17 Aug 2025 17:35:14 +0900 Subject: [PATCH] =?UTF-8?q?f11=20=EC=A0=84=EC=B2=B4=20=ED=99=94=EB=A9=B4?= =?UTF-8?q?=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/rfb/remote_frame_buffer_widget.dart | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/lib/rfb/remote_frame_buffer_widget.dart b/lib/rfb/remote_frame_buffer_widget.dart index dc7dc8c..e239fed 100644 --- a/lib/rfb/remote_frame_buffer_widget.dart +++ b/lib/rfb/remote_frame_buffer_widget.dart @@ -85,12 +85,6 @@ class RemoteFrameBufferWidgetState extends State { 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,7 +429,15 @@ class RemoteFrameBufferWidgetState extends State { final bool down = args['down']; final int key = args['key']; final int vkCode = args['vkCode']; - _sendToVnc(key, vkCode, down); + if(vkCode == 122) { + if (down) { + windowManager.isFullScreen().then((flag) { + windowManager.setFullScreen(!flag); + }); + } + } else { + _sendToVnc(key, vkCode, down); + } } }