replaced opera regex check with jquery browser check

pull/1492/head
Peter 'Pita' Martischka 2013-02-10 21:21:22 +00:00
parent 500c451ba1
commit 1fbd408e82
1 changed files with 1 additions and 1 deletions

View File

@ -4652,7 +4652,7 @@ function Ace2Inner(){
{
$(document).on("keydown", handleKeyEvent);
// Hack for Opera to stop it firing twice on events
if (/Opera[\/\s](\d+\.\d+)/.test(!navigator.userAgent)){
if ($.browser.opera){
$(document).on("keypress", handleKeyEvent);
}
$(document).on("keyup", handleKeyEvent);