Skip to content

Commit

Permalink
Mouse wheel click, or Ctrl+Click opens debug window in new tab
Browse files Browse the repository at this point in the history
  • Loading branch information
SilverFire committed Mar 17, 2016
1 parent de6905b commit 78d03b5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Yii Framework 2 debug extension Change Log
2.0.7 under development
-----------------------

- no changes in this release.
- Enh: Mouse wheel click, or Ctrl+Click opens debugger in new tab (silverfire)


2.0.6 March 17, 2016
Expand Down
4 changes: 3 additions & 1 deletion assets/toolbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,9 @@
var target = e.target,
block = findAncestor(target, blockClass);

if (block && !block.classList.contains(titleClass)) {
if (block && !block.classList.contains(titleClass)
&& e.which !== 2 && !e.ctrlKey // not mouse wheel and not ctrl+click
) {
while (target !== this) {
if (target.href) {
removeActiveBlocksCls();
Expand Down

0 comments on commit 78d03b5

Please sign in to comment.