Mac 한글전환 방법 shift space

맥북을 가끔 쓰다 보니.. 또 가끔 OS를 업데이트 하고나, 초기화도 하다 보니, 설정이 변경될 때가 있다.

그중에 하나가 한/영 변환인데.. 역시 제일 편한건 Shift-Space. (이건 아래아 한글때부터 써오던 방법이라..)

요즘엔 맥OS에서 기본으로 제공 되는 듯. 또 찾아볼까봐 여기에 남겨놓는다.

맥OS [설정] – [키보드] 에 들어가서 상단에 [단축키] 좌측에 [입력 소스] 를 선택하면 아래와 같은 화면이 나온다.

Mac 한글전환 방법 shift space

여기서 [이전 입력 소스 선택] 항목이 한/영 전환하는 항목이다.
지금은 보다시피 Ctrl-Space 로 되어있다.

이부분을 더블클릭 하면 수정할 수 있는데.. Shift-Space 는 입력이 안된다.

이럴땐..

Fn + Shift + Space 를 누르면

Shift-Space로 입력 된다.

그외 CapsLock 으로 한영 변환하기는 아래 글을 참고하시길

[Mac] 맥북에서 Caps Lock 으로 한/영 전환 설정/해제

 2,959 total views,  5 views today

글 내비게이션

맥당이야기 한영 전환 Shift-Space 12

3

알고 계시는 분도 많겠지만, 혹시나 해서 공유합니다. 

저는 예전부터 shift-space 로 한영 전환하는 것이 익숙해서 가능하면 모든 시스템의 한영 전환을 shift-space로 설정해서 사용하는데,

별도의 프로그램을 설치하지 않고 시스템 환경설정 - 키보드 - 단축키 - 입력소스 에서 설정해주는 방법을 사용합니다.

'이전 입력 소스 선택' 을 shift-space 로 설정하면 일단 되기는 하는데 전환 시 딜레이가 생기는 경우가 있어서,

'입력 메뉴에서 다음 소스 선택' 을 shift-space 로 설정하면 보다 안정적으로 동작합니다.

'이전 입력 소스 선택' 항목을 비워놓으면 '입력 메뉴에서 다음 소스 선택' 이 동작하지 않아서, '이전 입력 소스 선택' 은 사용하지 않을 것 같은 키 조합(저는 Ctrl-Shift-Space 입력해놓았습니다.)을 설정해놓으면 됩니다.

(단축키로 shift-space 를 지정하려면 Fn-Shift-Space 를 누르면 됩니다.)

Mac 한글전환 방법 shift space

이렇게 잘 동작했었는데, Big Sur 올렸더니 크롬에서 첫 글자가 씹히는 문제가 가끔 생기네요. ㅠㅠ


참고:
2021년 12월 21일 이후에 macOS Monterey로 업그레이드를 한 경우라면, 아래 내용처럼 설정할 필요가 없다.

내가 테스트해 본 바로는 12월 21일 이전에 배포된 Monterey만 한영 변화키 설정에 문제가 있었다.
(회사에서 내가 쓰는 맥북이 3대이다보니, Monterey로 업그레이드를 하는 날짜가 며칠씩 차이가 나는데 초반에 업그레이드한 Macbook만 한영 변환에 문제가 있었다)

12월 21일 이전에 Monterey로 Upgrade한 경우라면, 한영 변환키 [shift] + [space] key 조합이 안 되는 문제가 있다.

그래서 shift + space key 조합으로 한영변환하는 방법을 찾아보니 대부분 블로그들이 xcode를 이용해서 변환하라고 설명이 되어 있다.

겨우 한영 변환 키를 설정하기 위해 xcode라는 거대한 개발 도구를 설치하는 것은 아닌 것 같다는 생각이 들어서

아래와 같이 plutil 명령으로 간단하게 한연 변환키를 shift + space 조합으로 바꾸었다.

plutil은 macOS 기본 명령이라서 그냥 아래 명령을 따라하면 잘 동작한다.

## plist 파일을 xml 형식으로 변경
$ cd ~/Library/Preferences/

$ plutil -convert xml1 com.apple.symbolichotkeys.plist

## xml 문서를 수정
$ vi  com.apple.symbolichotkeys.plist

... 중간 생략 ...
        <key>61</key>
        <dict>
            <key>enabled</key>
            <true/>
            <key>value</key>
            <dict>
                <key>parameters</key>
                <array>
                    <integer>32</integer>
                    <integer>49</integer>
                    <integer>131072</integer>  ## <<-- 이 부분을 131072로 변경
                </array>
                <key>type</key>
                <string>standard</string>
... 중간 생략 ...

## 다시 원래의 plist binary 형태로 변환
$ plutil -convert binary1 com.apple.symbolichotkeys.plist

위 파일 편집에 관해 부연 설명을 하자면,
<integer>8519680</integer> 
라고 되어 있던 줄을 
<integer>131072</integer>
로 수정하는 것이다.

위와 같이 plist 파일을 변경하고 나면, 반드시 macOS를 Reboot해야 한다.

어떤 사람은 log-out, log-in만 해도 잘 된다고 하던데... 내가 직접 해보니, 꼭 Reboot을 해야 정상적으로 한영 변환 설정이 적용된다.

mac os 맥에서 한영전환키를 shift-space 로 변경

mac os 맥에서 한영전환키를 shift-space 로 변경하기 위해 찾아본 몇 가지 자료 나중에 또 필요할 것 같아서 기록함.

http://macnews.tistory.com/178 딜레이 없이 빠르게 OS X에서 한글-영어 입력기 전환하기

'이전 입력 소스 선택'이 아니라 '입력 메뉴에서 다음 소스 선택' Command + Space 단축키를 할당해 주면 키에서 손가락을 땔 때 언어가 전환되는 것이 아니라, 단축키를 누르는 순간 바로 한영 전환이 이루어지기 때문에 훨씬 빠르고 경쾌하게 한영 전환을 할 수 있습니다.

http://macnews.tistory.com/297 별도의 소프트웨어 설치없이 OS X 시스템 한영 전환을 Shift + Space 단축키로 변경하는 방법

프로퍼티 리스트 파일

~/Library/Preferences/com.apple.symbolichotkeys.plist

AppleSymbolicHotKeys > 61 > value > parameters > item 2 항목을 찾습니다. 참고로 해당 아이템의 원래 값은 1572864 이지만 앞서 블로그를 통해 소개해 드린 딜레이 없이 빠르게 OS X에서 한글-영어 입력기 전환하기 를 적용하신 경우라면 1048576 로 되어 있을 것입니다. 이 값을 131072 로 변경해줍니다. 쉼표는 넣어주지 말고 숫자만 넣어주십시오. 추후 단축키를 원상복구하려면 원래 키값을 적어넣어주시면 됩니다.

작업 내역을 저장한 후 OS X을 재부팅(혹윽 사용자 계정 로그아웃 후 재로그인)

com.apple.symbolichotkeys.plist 파일은 OS X 시스템 환경설정의 '키보드' preferencePane의 설정

'AppleSymbolicHotKeys > 61 > value > parameters > item 2' 부분에서 '61'은 '입력 메뉴에서 다음 소스 선택(Select the next source in the Input Menu)'에 해당하는 코드

참고 macworld.com 인터넷기록

Parameter 1, Paramater 2, Parameter 3 의 의미.

  • Parameter 1: ASCII code of the character (or 65535 - hex 0xFFFF - for non-ASCII characters).
  • Parameter 2: the keyboard key code for the character.
  • Parameter 3: the sum of the control, command, shift and option keys. these are bits 17-20 in binary:
    • shift is bit 17,
    • control is bit 18,
    • option is bit 19,
    • and command is bit 20.

Modifier 키의 Keycode는 다음과 같습니다.

  • Shift 키: 131072
  • Control 키: 262144
  • Option 키: 524288
  • Command 키: 1048576

참고 boredzo.org 인터넷기록

저장된 키코드 값을 텍스트 로 덤프

defaults read com.apple.symbolichotkeys > current.txt

table from archived hintsforums.macworld.com/showthread.php?t=114785

131072: Shift
262144: Control
524288: Option
1048576: Command

Add modifier values together in the 3rd parameter to combine them.

{ AppleSymbolicHotKeys = {

# Move focus to the menu bar - Control, F2
7 = { enabled = 1; value = { parameters = ( 65535, 120, 262144 ); type = standard; }; }; 

# Move focus to the Dock - Control, F3
8 = { enabled = 1; value = { parameters = ( 65535, 99, 262144 ); type = standard; }; }; 

# Move focus to active or next window - Control, F4
9 = { enabled = 1; value = { parameters = ( 65535, 118, 262144 ); type = standard; }; }; 

# Move focus to window toolbar - Control, F5
10 = { enabled = 1; value = { parameters = ( 65535, 96, 262144 ); type = standard; }; }; 

# Move focus to floating window - Control, F6
11 = { enabled = 1; value = { parameters = ( 65535, 97, 262144 ); type = standard; }; }; 

# ??? - Control, F1
12 = { enabled = 1; value = { parameters = ( 65535, 122, 262144 ); type = standard; }; }; 

# Change the way Tab moves focus - Control, F7
13 = { enabled = 1; value = { parameters = ( 65535, 98, 262144 ); type = standard; }; }; 

# Turn zoom on or off - Command, Option, 8
15 = { enabled = 1; value = { parameters = ( 56, 28, 1572864 ); type = standard; }; }; 

# Zoom in - Command, Option, =
17 = { enabled = 0; value = { parameters = ( 61, 24, 1572864 ); type = standard; }; }; 

# Zoom out - Command, Option, -
19 = { enabled = 0; value = { parameters = ( 45, 27, 1572864 ); type = standard; }; }; 

# Reverse Black and White - Command, Control, Option, 8
21 = { enabled = 1; value = { parameters = ( 56, 28, 1835008 ); type = standard; }; }; 

# Turn image smoothing on or off - Command, Option, \
23 = { enabled = 0; value = { parameters = ( 92, 42, 1572864 ); type = standard; }; }; 

# Increase Contrast - Command, Control, Option, .
25 = { enabled = 1; value = { parameters = ( 46, 47, 1835008 ); type = standard; }; }; 

# Decrease Contrast - Command, Control, Option, ','
26 = { enabled = 1; value = { parameters = ( 44, 43, 1835008 ); type = standard; }; }; 

# Move focus to the next window in application - Command, backtic
27 = { enabled = 1; value = { parameters = ( 96, 50, 1048576 ); type = standard; }; }; 

# Save picture of screen as file - Command, Shift, 3
28 = { enabled = 1; value = { parameters = ( 51, 20, 1179648 ); type = standard; }; }; 

# Copy picture of screen to clipboard - Command, Control, Shift, 3
29 = { enabled = 1; value = { parameters = ( 51, 20, 1441792 ); type = standard; }; }; 

# Save picture of selected area as file - Command, Shift, 4
30 = { enabled = 1; value = { parameters = ( 52, 21, 1179648 ); type = standard; }; }; 

# Copy picture of selected area to clipboard - Command, Control, Shift, 4
31 = { enabled = 1; value = { parameters = ( 52, 21, 1441792 ); type = standard; }; }; 

# 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; }; }; 

# ??? - Command, Option, T
50 = { enabled = 1; value = { parameters = ( 116, 17, 1572864 ); type = standard; }; }; 

# Move focus to the window drawer - Command, Option, quote
51 = { enabled = 1; value = { parameters = ( 39, 50, 1572864 ); type = standard; }; }; 

# Turn Dock Hiding On/Off - Command, Option, D
52 = { enabled = 1; value = { parameters = ( 100, 2, 1572864 ); type = standard; }; }; 

# ??? - F14
53 = { enabled = 1; value = { parameters = ( 65535, 107, 0 ); type = standard; }; }; 

# ??? - F15
54 = { enabled = 1; value = { parameters = ( 65535, 113, 0 ); type = standard; }; }; 

# ??? - Option, F14
55 = { enabled = 1; value = { parameters = ( 65535, 107, 524288 ); type = standard; }; }; 

# ??? - Option, F15
56 = { enabled = 1; value = { parameters = ( 65535, 113, 524288 ); type = standard; }; }; 

# Move focus to the status menus - Control, F8
57 = { enabled = 1; value = { parameters = ( 65535, 100, 262144 ); type = standard; }; }; 

# Turn VoiceOver on / off - Command, F5
59 = { enabled = 1; value = { parameters = ( 65535, 96, 1048576 ); type = standard; }; }; 

# Select the previous input source - Command, Option, Space
60 = { enabled = 1; value = { parameters = ( 32, 49, 1572864 ); type = standard; }; }; 

# Select the next source in the Input Menu - Command, Option, Shift, Space
61 = { enabled = 1; value = { parameters = ( 32, 49, 1703936 ); 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; }; }; 

# Show Spotlight search field - Command, Shift, Space
64 = { enabled = 1; value = { parameters = ( 65535, 49, 1179648 ); type = standard; }; }; 

# Show Spotlight window - Control, Shift, Space
65 = { enabled = 1; value = { parameters = ( 65535, 49, 393216 ); type = standard; }; }; 

# Dictionary MouseOver - Command, Shift, E
70 = { enabled = 1; value = { parameters = ( 101, 2, 1179648 ); type = standard; }; }; 

# Hide and show Front Row - Command, Esc
73 = { enabled = 1; value = { parameters = ( 65535, 53, 1048576 ); 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; }; }; 

# Spaces Left - Control, Left
79 = { enabled = 1; value = { parameters = ( 65535, 123, 262144 ); type = standard; }; }; 

# Spaces Right - Control, Right
81 = { enabled = 1; value = { parameters = ( 65535, 124, 262144 ); type = standard; }; }; 

# Spaces Down - Control, Down
83 = { enabled = 1; value = { parameters = ( 65535, 125, 262144 ); type = standard; }; }; 

# Spaces Up - Control, Up
85 = { enabled = 1; value = { parameters = ( 65535, 126, 262144 ); type = standard; }; }; 

# Show Help Menu - Command, Shift, /
91 = { enabled = 0; };
92 = { enabled = 0; };
98 = { enabled = 0; value = { parameters = ( 47, 44, 1179648 ); type = standard; }; }; 

# Switch to Space 1 - Control, 1
118 = { enabled = 1; value = { parameters = ( 65535, 18, 262144 ); type = standard; }; }; 

# Switch to Space 2 - Control, 2
119 = { enabled = 1; value = { parameters = ( 65535, 19, 262144 ); type = standard; }; }; 

# Switch to Space 3 - Control, 3
120 = { enabled = 1; value = { parameters = ( 65535, 20, 262144 ); type = standard; }; }; 

# Switch to Space 4 - Control, 4
121 = { enabled = 1; value = { parameters = ( 65535, 21, 262144 ); type = standard; }; }; 

122 = { enabled = 0; };
123 = { enabled = 0; };
124 = { enabled = 0; };
125 = { enabled = 0; };
126 = { enabled = 0; };
127 = { enabled = 0; };
128 = { enabled = 0; };
129 = { enabled = 0; };
130 = { enabled = 0; };
131 = { enabled = 0; };
132 = { enabled = 0; };
133 = { enabled = 0; };
134 = { enabled = 0; };
135 = { enabled = 0; };
136 = { enabled = 0; };
137 = { enabled = 0; };
138 = { enabled = 0; };
139 = { enabled = 0; };
140 = { enabled = 0; };
141 = { enabled = 0; };
142 = { enabled = 0; };
143 = { enabled = 0; };
144 = { enabled = 0; };
145 = { enabled = 0; };
146 = { enabled = 0; };
147 = { enabled = 0; };
148 = { enabled = 0; };
149 = { enabled = 0; };
}; }

http://macnews.tistory.com/3736 OS X에서 shift + space 키로 입력 소스를 전환하는 3가지 방법... '한/영 전환'

OS X 10.11 El Capitan 에서 입력소스 전환이 ctrl-space 로 변경됨. com.apple.symbolichotkeys.plist 수정시 참고. 미리 command-space 로 변경 한 후에 적용하면 헷갈리지 않을것임.