FF middle click fix

pull/2600/head
John McLear 2015-04-11 10:45:51 +01:00
parent 2ca0214661
commit 14fab9f441
1 changed files with 4 additions and 1 deletions

View File

@ -4955,7 +4955,10 @@ function Ace2Inner(){
// Don't paste on middle click of links
$(root).on("paste", function(e){
if(e.target.a){
// TODO: this breaks pasting strings into URLS when using
// Control C and Control V -- the Event is never available
// here.. :(
if(e.target.a || e.target.localName === "a"){
e.preventDefault();
}
})