api 'secret key' fix, mousedown/up textrange and active selection fix, css