dont open links if shift key is pressed on click
This commit is contained in:
parent
7bb9afa4ed
commit
fc8368cc9f
1 changed files with 1 additions and 1 deletions
|
@ -66,7 +66,7 @@ Ox.Editable = function(options, self) {
|
||||||
.on({
|
.on({
|
||||||
click: function(e) {
|
click: function(e) {
|
||||||
var $target = $(e.target);
|
var $target = $(e.target);
|
||||||
if ($target.is('a') || ($target = $target.parents('a')).length) {
|
if (!e.shiftKey && ($target.is('a') || ($target = $target.parents('a')).length)) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
if (self.options.clickLink) {
|
if (self.options.clickLink) {
|
||||||
e.target = $target[0];
|
e.target = $target[0];
|
||||||
|
|
Loading…
Reference in a new issue