분류 전체보기 (129)N
Wi-Fi LED Matrix (1)
Code snippets (4)
Music (2)
MacOS & iOS (15)N
Linux & Android (23)
Windows & WM (18)
Electronic (23)
Archived (32)
Trash Bin (10)
535,127 Visitors up to today!
Today 0 hit, Yesterday 12 hit
2019.05.25 19:55

맥에 윈도우 키보드를 연결하면 Home키를 누르면 Page Up처럼 동작하고 End키를 누르면 Page Down처럼 이동하는 등 문제가 많습니다.

그런경우 터미널을 열어 아래처럼 명령을 내려 키를 리매핑 해보세요.

mkdir -p $HOME/Library/KeyBindings
echo '{
/* Remap Home / End keys to be correct */
"\UF729" = "moveToBeginningOfLine:"; /* Home */
"\UF72B" = "moveToEndOfLine:"; /* End */
"$\UF729" = "moveToBeginningOfLineAndModifySelection:"; /* Shift + Home */
"$\UF72B" = "moveToEndOfLineAndModifySelection:"; /* Shift + End */
"^\UF729" = "moveToBeginningOfDocument:"; /* Ctrl + Home */
"^\UF72B" = "moveToEndOfDocument:"; /* Ctrl + End */
"$^\UF729" = "moveToBeginningOfDocumentAndModifySelection:"; /* Shift + Ctrl + Home */
"$^\UF72B" = "moveToEndOfDocumentAndModifySelection:"; /* Shift + Ctrl + End */
}' > $HOME/Library/KeyBindings/DefaultKeyBinding.dict

아주 깔끔하게 문제가 해결됩니다~