Bug 855504 - [font inspector] Selecting text in the font inspector is hard. r=vporof

This commit is contained in:
Paul Rouget 2013-06-24 09:24:00 -04:00
parent 96837b0120
commit 32a9867c14

View File

@ -148,6 +148,11 @@ ToolSidebar.prototype = {
*/
handleEvent: function ToolSidebar_eventHandler(event) {
if (event.type == "select") {
if (this._currentTool == this.getCurrentTabID()) {
// Tool hasn't changed.
return;
}
let previousTool = this._currentTool;
this._currentTool = this.getCurrentTabID();
if (previousTool) {