javascript - highstock chart cancel zoom area selection using "Esc" -


does 1 have idea how cancel zoom area selection after dragging mouse on chart not release mouse yet?

see connected request here.

and example: http://jsfiddle.net/highcharts/72ga7/7/

snippet:

// generic code add zoom cancelling hitting escape highcharts.pointer.prototype.canceldrag = function () {     if (this.selectionmarker) {         this.selectionmarker = this.selectionmarker.destroy();     }     this.drop(); }; $(document).keyup(function (e) {     if (e.charcode == 27) { // esc         $.each(highcharts.charts, function () {             this.pointer.canceldrag();         });     } // esc }); 

Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

jquery - javascript onscroll fade same class but with different div -