Ticket #5450: 5450_2.patch
File 5450_2.patch, 787 bytes (added by , 14 years ago) |
---|
-
_source/plugins/dialogui/plugin.js
509 509 { 510 510 if ( evt.data.getKeystroke() in { 32:1, 13:1 } ) 511 511 { 512 // if the event target is a link and is focused 513 // do not prevent the default behavior, then it will fire click event 514 // why we do this is that in this case FireFox couldn't prevent default behavior successfully (#5450) 515 var target = evt.data.getTarget(); 516 if ( target.getName() == 'a' ) 517 return; 518 512 519 me.click(); 513 520 evt.data.preventDefault(); 514 521 }