Ticket #3794: 3794_2.2.patch

File 3794_2.2.patch, 841 bytes (added by Garry Yao, 15 years ago)
  • _source/plugins/dialogui/plugin.js

     
    216216                                                                if ( evt.data.getKeystroke() == 13 )
    217217                                                                        keyPressedOnMe = true;
    218218                                                        } );
     219                                                // Lower the priority this 'keyup' since 'ok' will close the dialog.(#3749)   
    219220                                                me.getInputElement().on( 'keyup', function( evt )
    220221                                                        {
    221222                                                                if ( evt.data.getKeystroke() == 13 && keyPressedOnMe )
     
    223224                                                                        dialog.getButton( 'ok' ) && dialog.getButton( 'ok' ).click();
    224225                                                                        keyPressedOnMe = false;
    225226                                                                }
    226                                                         } );
    227                                         } );
     227                                                        }, null, null, 1000 );
     228                                        } );
    228229
    229230                                /** @ignore */
    230231                                var innerHTML = function()
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy