Yes that makes a lot of sense actually
On Nov 12, 2013 1:38 PM, "Tanguy Krotoff" <notifications@github.com> wrote:

> In jquery.simplecolorpicker.js:
>
> >      },
> >
> >      hidePicker: function() {
> > -      this.$picker.hide(this.options.pickerDelay);
> > +	  var self = this;
> > +	  this.$picker.hide(this.options.pickerDelay, function() {
> > +		//FIXME Disabled this for now. When ESC is pressed, the ESC is being propogated to a bootstrap dialog when it is in a dialog.
> > +		//self.$icon.focus();
>
> Instead of focusing back to the picker icon, one can imagine to focus back
> on the last known focused element?
> This would require to save the focused element before line 177.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/tkrotoff/jquery-simplecolorpicker/pull/19/files#r7601656>
> .
>