OSX shortcut fix.

closes #2573
- separate different shortcuts by OS detection in markdownEditor.js