From fa046df923465dacec8492e0fa01f98bfeae8e89 Mon Sep 17 00:00:00 2001 From: rustdesk Date: Mon, 30 Oct 2023 21:20:55 +0800 Subject: [PATCH] add controlRight to file manager --- flutter/lib/desktop/pages/file_manager_page.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/flutter/lib/desktop/pages/file_manager_page.dart b/flutter/lib/desktop/pages/file_manager_page.dart index 1fc9d5b15..7fd110853 100644 --- a/flutter/lib/desktop/pages/file_manager_page.dart +++ b/flutter/lib/desktop/pages/file_manager_page.dart @@ -1126,8 +1126,8 @@ class _FileManagerViewState extends State { void _onSelectedChanged(SelectedItems selectedItems, List entries, Entry entry, bool isLocal) { - final isCtrlDown = RawKeyboard.instance.keysPressed - .contains(LogicalKeyboardKey.controlLeft); + final isCtrlDown = RawKeyboard.instance.keysPressed.contains(LogicalKeyboardKey.controlLeft) || + RawKeyboard.instance.keysPressed.contains(LogicalKeyboardKey.controlRight); final isShiftDown = RawKeyboard.instance.keysPressed.contains(LogicalKeyboardKey.shiftLeft) || RawKeyboard.instance.keysPressed.contains(LogicalKeyboardKey.shiftRight);