Ticket #5450: 5450_2.patch

File 5450_2.patch, 787 bytes (added by brooks, 14 years ago)
  • _source/plugins/dialogui/plugin.js

     
    509509                                                                {
    510510                                                                        if ( evt.data.getKeystroke() in { 32:1, 13:1 } )
    511511                                                                        {
     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                                                                               
    512519                                                                                me.click();
    513520                                                                                evt.data.preventDefault();
    514521                                                                        }
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy