Fixed [Ctrl] + [Tab] in <textarea> in Firefox on Mac OS X
authorAlexander Ebert <ebert@woltlab.com>
Tue, 25 Nov 2014 16:07:01 +0000 (17:07 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Tue, 25 Nov 2014 16:07:01 +0000 (17:07 +0100)
wcfsetup/install/files/js/3rdParty/redactor/plugins/wmonkeypatch.js

index 7e1fc8dbbfe6b26c69a11720d990e744b951049f..b686f3a80ca553330f795c4364484b1c0d1ac1db 100644 (file)
@@ -267,6 +267,16 @@ RedactorPlugins.wmonkeypatch = function() {
                                
                                $mpStartSync.call(this);
                        }).bind(this);
+                       
+                       // code.textareaIndenting
+                       var $mpTextareaIndenting = this.code.textareaIndenting;
+                       this.code.textareaIndenting = (function(e) {
+                               if (e.keyCode !== 9 || e.ctrlKey) {
+                                       return true;
+                               }
+                               
+                               return $mpTextareaIndenting.call(this, e);
+                       }).bind(this);
                },
                
                /**