답변:
수행하려는 작업에 따라 키보드 단축키를 완전히 잘라내어 완전히 자동화 할 수 있습니다. KeyRemap4MacBook을 사용하면 현재 사용중인 응용 프로그램에 따라 키 다시 매핑을 설정할 수 있습니다.
나는 스위치 설정 사용하고 있습니다 F1통해 F12내가 RDC (Windows 원격 데스크톱)를 사용하고 있습니다 때마다 표준 기능 키에 있습니다. 다른 시간에는 아이콘처럼 작동합니다 (밝기, 볼륨, 재생 등).
KeyRemap4MacBook라고 KarabinerMaverics (맥 OS X 10.9)과 다음,과 Karabiner Elements엘 캡틴 (맥 OS 10.11)에서. 모든 것은 Karabiner 다운로드 페이지 에서 다운로드 할 수 있습니다 .
파일 에서 사용자 정의 설정 을 작성하여 응용 프로그램 특정 단축키를 작성할 수 private.xml있습니다. 자세한 내용은 PhpStorm에서 디버거를 사용할 때 소비자 키를 기능 키로 다시 바인딩하는 아래의 예제 또는 참조 문서 를 확인하십시오 .
<?xml version="1.0"?>
<root>
<!-- PhpStorm & EAP Version -->
<appdef>
<appname>PHPSTORM</appname>
<equal>com.jetbrains.PhpStorm-EAP</equal>
<equal>com.jetbrains.PhpStorm</equal>
</appdef>
<!-- ============================================================ -->
<item>
<name>Switch to normal function keys when in PhpStorm</name>
<appendix>Change consumer keys to function keys in PhpStorm</appendix>
<identifier>private.app_phpstorm_switch_consumer_to_fn</identifier>
<only>PHPSTORM</only>
<autogen>__KeyToKey__ KeyCode::BRIGHTNESS_DOWN, KeyCode::F1</autogen>
<autogen>__KeyToKey__ KeyCode::BRIGHTNESS_UP, KeyCode::F2</autogen>
<autogen>__KeyToKey__ KeyCode::EXPOSE_ALL, KeyCode::F3</autogen>
<autogen>__KeyToKey__ KeyCode::LAUNCHPAD, KeyCode::F4</autogen>
<autogen>__KeyToKey__ KeyCode::VK_CONSUMERKEY_KEYBOARDLIGHT_LOW, KeyCode::F5</autogen>
<autogen>__KeyToKey__ KeyCode::VK_CONSUMERKEY_KEYBOARDLIGHT_HIGH, KeyCode::F6</autogen>
<autogen>__KeyToKey__ ConsumerKeyCode::MUSIC_PREV, KeyCode::F7</autogen>
<autogen>__KeyToKey__ ConsumerKeyCode::MUSIC_PLAY, KeyCode::F8</autogen>
<autogen>__KeyToKey__ ConsumerKeyCode::MUSIC_NEXT, KeyCode::F9</autogen>
<!-- I want to use these while in PhpStorm
<autogen>__KeyToKey__ ConsumerKeyCode::VOLUME_MUTE, KeyCode::F10</autogen>
<autogen>__KeyToKey__ ConsumerKeyCode::VOLUME_DOWN, KeyCode::F11</autogen>
<autogen>__KeyToKey__ ConsumerKeyCode::VOLUME_UP, KeyCode::F12</autogen>
-->
</item>
</root>
더 쉬운 방법이있을 수 있지만 다음을 염두에 두십시오.
https://github.com/Pyroh/Fluor에 대한 앱이 있습니다.
fn규칙 엔진에 따라 키 동작 을 지정하고 키를 누를 때 하나의 동작과 다른 동작 사이를 전환 할 수 있습니다 fn.