Browse files

Added metakey support for Mac users (michal-krause)

  • Loading branch information...
1 parent ce474f1 commit 8f464f1665a7e31747f2ec67d7aa1d7c871dd772 Jay Salvat committed Mar 24, 2011
Showing with 2 additions and 1 deletion.
  1. +1 −0 CHANGELOG.md
  2. +1 −1 markitup/jquery.markitup.js
View
1 CHANGELOG.md
@@ -5,6 +5,7 @@ markItUp! 1.1.11 xxxx-xx-xx
- Updated: jQuery 1.5
- Added quotes to attribute selectors
- Tried to fix the endless IE caret position bug
+- Added metakey support for Mac users (michal-krause)
markItUp! 1.1.10 2011-02-20
- Improved: Ajax property 'dataType' set to 'text'
View
2 markitup/jquery.markitup.js
@@ -501,7 +501,7 @@
function keyPressed(e) {
shiftKey = e.shiftKey;
altKey = e.altKey;
- ctrlKey = (!(e.altKey && e.ctrlKey)) ? e.ctrlKey : false;
+ ctrlKey = (!(e.altKey && e.ctrlKey)) ? e.ctrlKey || e.metaKey : false;
if (e.type === 'keydown') {
if (ctrlKey === true) {

0 comments on commit 8f464f1

Please sign in to comment.