From 74ef86f14fcdaf9f6dc70dcb7892d999f8f81c23 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Mon, 6 Oct 2014 15:59:51 +0200 Subject: [PATCH] Fixed shortcuts for crome developer console. --- .../javascripts/app/lib/base/jquery.contenteditable.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/app/lib/base/jquery.contenteditable.js b/app/assets/javascripts/app/lib/base/jquery.contenteditable.js index 9238c0805..0eee423ad 100644 --- a/app/assets/javascripts/app/lib/base/jquery.contenteditable.js +++ b/app/assets/javascripts/app/lib/base/jquery.contenteditable.js @@ -255,7 +255,11 @@ // check if rich text key is pressed Plugin.prototype.richTextKey = function(e) { - if ( ( e.ctrlKey || e.metaKey ) && this.options.richTextFormatKey[ e.keyCode ] ) { + // e.altKey + // e.ctrlKey + // e.metaKey + // on mac block e.ctrlKey + i/b/u + if ( !e.altKey && e.metaKey && this.options.richTextFormatKey[ e.keyCode ] ) { return true } return false