aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/lib/scripts/editor.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/scripts/editor.js')
-rw-r--r--lib/scripts/editor.js8
1 files changed, 1 insertions, 7 deletions
diff --git a/lib/scripts/editor.js b/lib/scripts/editor.js
index e96df7c82..c9cb312b0 100644
--- a/lib/scripts/editor.js
+++ b/lib/scripts/editor.js
@@ -25,13 +25,7 @@ var dw_editor = {
return;
}
- // in Firefox, keypress doesn't send the correct keycodes,
- // in Opera, the default of keydown can't be prevented
- if (jQuery.browser.opera) {
- $editor.keypress(dw_editor.keyHandler);
- } else {
- $editor.keydown(dw_editor.keyHandler);
- }
+ $editor.keydown(dw_editor.keyHandler);
},