mirror of
https://github.com/ether/etherpad-lite.git
synced 2026-05-05 20:26:49 +02:00
replaced opera regex check with jquery browser check
This commit is contained in:
parent
500c451ba1
commit
1fbd408e82
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user