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 902de0f7fb
commit 2e6f11a8a4

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) {