Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

Add status bar error indicator clear shortcut #8997

Merged
merged 1 commit into from
Oct 13, 2014
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion src/extensions/default/DebugCommands/ErrorNotification.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,14 @@ define(function (require, exports, module) {
}
}

function handleClick(event) {
if (event.shiftKey) {
window.console.clear();
} else {
showDeveloperTools();
}
}

function refreshIndicator() {
// never show 0 errors
if (!_attached || errorCount === 0) {
Expand All @@ -73,7 +81,7 @@ define(function (require, exports, module) {
.attr("title", Strings.CMD_SHOW_DEV_TOOLS + "\u2026")
.text(Strings.ERRORS + ": ")
.append($span)
.on("click", showDeveloperTools)
.on("click", handleClick)
.insertBefore("#status-bar .spinner");
}

Expand Down