Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

I have a set customized keyboard bindings located in a plist file at ~/Library/KeyBindings/DefaultKeyBinding.Dict which works with Hex keys like..

"\UF729" = "moveToBeginningOfLine:"; /* Home */

or for "Non-Printable Key Codes", like so..

Backtab ( tab) \U0019

I'd like to add a new keyboard shortcut for the start dictation commands in Mountain lion, aka, .

Is there such a code? Or is NSresponder making them up on the fly, other private magic, etc.?

share|improve this question

1 Answer 1

up vote 2 down vote accepted

Changing the actions of double-presses of modifier keys is probably impossible. There isn't even a code point for the fn key in CORPCHAR.TXT.

But if you're looking to add a different shortcut for toggling speech, you should be looking for method names instead of shortcut strings.

I tried using strings to find method names for starting dictation. startDictation: and startSpeechCaptureForDictation: seemed promising, but neither worked in DefaultKeyBinding.dict.

Even if you were able to change the shortcut in DefaultKeyBinding.dict, it wouldn't work in applications that don't support the customizable keybindings.

What's wrong with just changing it in System Preferences?

If you want to use a shortcut that isn't allowed, you might be able to change CustomizedDictationHotKey in ~/Library/Preferences/com.apple.speech.recognition.AppleSpeechRecognition.prefs.plist.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.