Allow middle-click on a Todo row to open in a new tab
This commit is contained in:
parent
7acea6bde9
commit
aace81ca37
1 changed files with 2 additions and 1 deletions
|
@ -102,7 +102,8 @@ class @Todos
|
|||
todoLink = $(this).data('url')
|
||||
return unless todoLink
|
||||
|
||||
if e.metaKey
|
||||
# Allow Meta-Click or Mouse3-click to open in a new tab
|
||||
if e.metaKey or e.which is 2
|
||||
e.preventDefault()
|
||||
window.open(todoLink,'_blank')
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue