dont open links if shift key is pressed on click

This commit is contained in:
j 2013-02-01 14:22:17 +00:00
parent 7bb9afa4ed
commit fc8368cc9f

View file

@ -66,7 +66,7 @@ Ox.Editable = function(options, self) {
.on({
click: function(e) {
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();
if (self.options.clickLink) {
e.target = $target[0];