From 0a1c13c92d15be092eb02ef8725de246fd94d52b Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Sat, 26 Nov 2016 11:45:59 +0100 Subject: removed jQuery.browser calls jQuery.browser no longer exists in jQuery nor in jQuery migrate. A quick check in Opera and IE11 suggests that both parts that used it are no longer needed so they were simply removed. More browser tests especially for the resize handling in the media manager are recommended. --- lib/scripts/editor.js | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'lib/scripts/editor.js') diff --git a/lib/scripts/editor.js b/lib/scripts/editor.js index fac084489..3aac6bfb5 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); }, -- cgit v1.2.3