OSX shortcut fix.

closes #2573
- separate different shortcuts by OS detection in markdownEditor.js
Merge pull request #2574 from LazyChild/issue-2573

OSX shortcut fix.