mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-20 23:46:14 -04:00
replaced opera regex check with jquery browser check
This commit is contained in:
parent
500c451ba1
commit
1fbd408e82
1 changed files with 1 additions and 1 deletions
|
@ -4652,7 +4652,7 @@ function Ace2Inner(){
|
||||||
{
|
{
|
||||||
$(document).on("keydown", handleKeyEvent);
|
$(document).on("keydown", handleKeyEvent);
|
||||||
// Hack for Opera to stop it firing twice on events
|
// 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("keypress", handleKeyEvent);
|
||||||
}
|
}
|
||||||
$(document).on("keyup", handleKeyEvent);
|
$(document).on("keyup", handleKeyEvent);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue