Ticket #9022: 9022_3.patch

File 9022_3.patch, 840 bytes (added by Garry Yao, 12 years ago)
  • _source/plugins/selection/plugin.js

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
     
    449449                                                                        // Start to build the text range.
    450450                                                                        var textRng = body.$.createTextRange();
    451451                                                                        textRng.moveToPoint( evt.x, evt.y );
    452                                                                         textRng.select();
    453452
    454453                                                                        html.on( 'mousemove', onHover );
    455454
     
    457456                                                                        {
    458457                                                                                html.removeListener( 'mousemove', onHover );
    459458                                                                                evt.removeListener();
     459
     460                                                                                // Make it in effect on mouse up. (#9022)
    460461                                                                                textRng.select();
    461                                                                                 textRng = null;
    462462                                                                        } );
    463463                                                                }
    464464                                                        });
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy