stop opera doing stupid things

pull/1477/head
John McLear 2013-02-09 19:44:13 +00:00
parent a93ff37879
commit a45a8a837d
1 changed files with 4 additions and 1 deletions

View File

@ -4665,7 +4665,10 @@ function Ace2Inner(){
function bindTheEventHandlers()
{
$(document).on("keydown", handleKeyEvent);
$(document).on("keypress", handleKeyEvent);
// Hack for Opera to stop it firing twice on events
if (/Opera[\/\s](\d+\.\d+)/.test(!navigator.userAgent)){
$(document).on("keypress", handleKeyEvent);
}
$(document).on("keyup", handleKeyEvent);
$(document).on("click", handleClick);
$(root).on("blur", handleBlur);