DefaultKeyBinding.dict file ignored if symlinked

Originator:gene
Number:rdar://25368780 Date Originated:2016-03-25
Status:Open Resolved:
Product:OS X Product Version:10.11.4
Classification:Other Bug Reproducible:Always
 
Summary:
OS X has long provided the ability to customize key bindings by creating a customized ~/Library/KeyBindings/DefaultKeyBinding.dict file, as described in

https://developer.apple.com/library/mac/documentation/Cocoa/Conceptual/EventOverview/TextDefaultsBindings/TextDefaultsBindings.html

This mechanism works as described, *unless* a symbolic link is used for DefaultKeyBinding.dict. This is a common scenario for users that wish to take advantage of, for example, Dropbox sync to maintain the same DefaultKeyBinding.dict file on multiple Macs.

Steps to Reproduce:
1. Close Notes.app if it is currently open
2. Create a custom ~/Library/KeyBindings/DefaultKeyBinding.dict file with some custom mappings
3. Open Notes.app and confirm that your custom bindings work
4. Close Notes.app
5. In Terminal:

mv ~/Library/KeyBindings/DefaultKeyBinding.dict ~/Desktop
ln -s ~/Desktop/DefaultKeyBinding.dict ~/Library/KeyBindings/DefaultKeyBinding.dict

6. Open Notes.app again
7. Note that your customizations no longer function

Expected Results:
The DefaultKeyBinding.dict file should work whether the actual file is in the correct location or a valid symlink is there instead

Actual Results:
The customizations have no effect when a symlink is used.

Version:
OS X 10.11.4

Notes:


Configuration:
N/A

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!