Prevent form submit if Alt Gr is pressed
authorAlexander Ebert <ebert@woltlab.com>
Tue, 14 Apr 2015 11:01:22 +0000 (13:01 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Tue, 14 Apr 2015 11:01:22 +0000 (13:01 +0200)
wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js

index efd19aa803972944edc1c37d91722bb6c99a4279..25ae9777978120e422b14876646df9a19e645220 100644 (file)
@@ -1843,7 +1843,7 @@ RedactorPlugins.wbbcode = function() {
                                                        $submitEditor = true;
                                                }
                                        }
-                                       else if (data.event.altKey) {
+                                       else if (data.event.altKey && !data.event.ctrlKey) {
                                                $submitEditor = true;
                                        }