From fc8368cc9f278f06bb4f29792252c6751b5d17f2 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Fri, 1 Feb 2013 14:22:17 +0000 Subject: [PATCH] dont open links if shift key is pressed on click --- source/Ox.UI/js/Form/Editable.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/Ox.UI/js/Form/Editable.js b/source/Ox.UI/js/Form/Editable.js index de3ea9cb..c213fb5c 100644 --- a/source/Ox.UI/js/Form/Editable.js +++ b/source/Ox.UI/js/Form/Editable.js @@ -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];