Tom*_*m S 3 mac virtualbox macos
对我来说,一个普通工作日包括 50% 的 mac,50% 的 mac 上的 windows 虚拟机使用。当我使用 Mac 的时候,我喜欢 F 键的交互方式,当我在 Windows 上时,我非常依赖 F 键,这迫使我不得不使用 FN 键。默认情况下,他们是否有任何选项或方法可以强制我的 Windows 虚拟框实例接受 f 键?
没有简单(ish)的方法可以让某些东西在 Mac 上接收功能键。可能涉及修补系统本身,这将是一个坏主意。
您的 F 键有两种模式:
您可以通过按下或松开 来切换Fn。但是您可以在不按 Fn 时切换接收哪些:

您可以创建一个简单的 AppleScript 或 Automator 工作流程,让您切换Fn键设置,我在此答案中对此进行了描述。
如果您想在 Windows 和 Mac 上使用常规 F 键并想暂时禁用 Expose、Spaces、Dashboard,请编写一个脚本来使用/usr/libexec/PlistBuddy或defaults修改您的~/Libary/Preferences/com.apple.symbolichotkeys.plist文件,如用户 fracai在此其他网站上所述:
# All Windows - F9
32 = { enabled = 1; value = { parameters = ( 65535, 101, 0 ); type = standard; }; };
# Application Windows - F10
33 = { enabled = 1; value = { parameters = ( 65535, 109, 0 ); type = standard; }; };
# All Windows (Slow) - F9
34 = { enabled = 1; value = { parameters = ( 65535, 101, 131072 ); type = standard; }; };
# Application Windows (Slow) - F10
35 = { enabled = 1; value = { parameters = ( 65535, 109, 131072 ); type = standard; }; };
# Desktop - F11
36 = { enabled = 1; value = { parameters = ( 65535, 103, 0 ); type = standard; }; };
# Desktop (Slow) - F11
37 = { enabled = 1; value = { parameters = ( 65535, 103, 131072 ); type = standard; }; };
# Dashboard - F12
62 = { enabled = 1; value = { parameters = ( 65535, 111, 0 ); type = standard; }; };
# Dashboard (Slow) - F12
63 = { enabled = 1; value = { parameters = ( 65535, 111, 131072 ); type = standard; }; };
# Activate Spaces - F8
75 = { enabled = 1; value = { parameters = ( 65535, 100, 0 ); type = standard; }; };
# Activate Spaces (Slow) - Shift, F8
76 = { enabled = 1; value = { parameters = ( 65535, 100, 131072 ); type = standard; }; };
Run Code Online (Sandbox Code Playgroud)