mirror of
https://github.com/ether/etherpad-lite.git
synced 2026-05-11 15:16:28 +02:00
stop opera doing stupid things
This commit is contained in:
parent
a93ff37879
commit
a45a8a837d
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user