Ticket #5507: 5507.patch

File 5507.patch, 566 bytes (added by Minh Nguyen, 9 years ago)

Don't focus dialog button

  • _source/plugins/dialog/plugin.js

     
    299299                                if ( currentIndex == startIndex )
    300300                                        break;
    301301                        }
    302                         focusList[ currentIndex ].focus();
     302                       
     303                        // Don't focus if element is button
     304                        (focusList[ currentIndex ].type != 'button') && focusList[ currentIndex ].focus();
    303305
    304306                        // Select whole field content.
    305307                        if ( focusList[ currentIndex ].type == 'text' )
© 2003 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy