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

Commit

Permalink
Merge pull request #8997 from cheesypoof/status-bar-errors-shortcut
Browse files Browse the repository at this point in the history
Add status bar error indicator clear shortcut
  • Loading branch information
redmunds committed Oct 13, 2014
2 parents 3afa289 + 2b68711 commit e080eb6
Showing 1 changed file with 9 additions and 1 deletion.
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

0 comments on commit e080eb6

Please sign in to comment.