Skip to content

Commit

Permalink
Added metakey support for Mac users (michal-krause)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jay Salvat committed Mar 24, 2011
1 parent ce474f1 commit 8f464f1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -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'
Expand Down
2 changes: 1 addition & 1 deletion markitup/jquery.markitup.js
Expand Up @@ -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) {
Expand Down

0 comments on commit 8f464f1

Please sign in to comment.