Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(351)

Unified Diff: third_party/WebKit/Source/devtools/front_end/ui/Toolbar.js

Issue 2785993002: DevTools: Allow ToolbarMenuButtons to be trigged via keyboard (Closed)
Patch Set: conditional clear Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/devtools/front_end/ui/Toolbar.js
diff --git a/third_party/WebKit/Source/devtools/front_end/ui/Toolbar.js b/third_party/WebKit/Source/devtools/front_end/ui/Toolbar.js
index 2c5a8ffa735c4f218e4a91786ec65f69aee631e1..8f36b24b98759c7ac45a84b8f71a32fc690e56d3 100644
--- a/third_party/WebKit/Source/devtools/front_end/ui/Toolbar.js
+++ b/third_party/WebKit/Source/devtools/front_end/ui/Toolbar.js
@@ -745,9 +745,8 @@ UI.ToolbarMenuButton = class extends UI.ToolbarButton {
* @param {!Event} event
*/
_clicked(event) {
- if (!this._triggerTimeout)
- return;
- clearTimeout(this._triggerTimeout);
+ if (this._triggerTimeout)
+ clearTimeout(this._triggerTimeout);
this._trigger(event);
}
};
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698