Last Updated: February 25, 2016
·
376
· noppatee

Yosemite Spotlight: control + ` doesn't work when keyboard input is Thai

I've been using control + ' (control grave) for OS X Spotlight activation. Before OS X Yosemite, it works no matter what the current keyboard input language is (I'm Thai so apparently, I've got TH and EN as keyboard inputs)

Now, in OS X Yosemite, when the input is Thai, control + ' does nothing because OS X thought it's control + - (control minus). Then, I have to switch back to EN to activate Spotlight which is very frustrating.

So, after a bit of quick research, I made an applescript to trigger control + ' as following...

tell application "System Events"
    key code 50 using {control down} -- keycode 50 is grave accent 
end tell

With this script and Quicksilver, you can create a custom trigger for the script with any keyboard shortcut.

So, in this case, I bind control + - to trigger the script.

Picture

Aaaand that's it. Hope this helps!