Skip to content
This repository has been archived by the owner on Mar 8, 2019. It is now read-only.

Commit

Permalink
Proper fix for #16 (polish keyboard issue)
Browse files Browse the repository at this point in the history
  • Loading branch information
Christopher Blum committed Mar 15, 2012
1 parent bed8d55 commit 4728930
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions src/browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -333,10 +333,6 @@ wysihtml5.browser = (function() {
*/
crashesWhenDefineProperty: function(property) {
return isIE && (property === "XMLHttpRequest" || property === "XDomainRequest");
},

isMac: function() {
return navigator.platform.substr(0, 3).toLowerCase() === "mac";
}
};
})();
2 changes: 1 addition & 1 deletion src/undo_manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@

// Catch CTRL+Z and CTRL+Y
dom.observe(this.composerElement, "keydown", function(event) {
if (!event.ctrlKey && !(event.metaKey && wysihtml5.browser.isMac())) {
if (event.altKey || (!event.ctrlKey && !event.metaKey)) {
return;
}

Expand Down

0 comments on commit 4728930

Please sign in to comment.