partkeepr

fork of partkeepr
git clone https://git.e1e0.net/partkeepr.git
Log | Files | Refs | Submodules | README | LICENSE

commit 7715766743a66325cf8c141868e6abc145dbe380
parent 775622b57b4e138a9535bba570965343dd66012d
Author: Felicitus <felicitus@felicitus.org>
Date:   Mon, 23 Apr 2012 10:35:42 +0200

Allow access to the browser's context menu by pressing ctrl

Diffstat:
Msrc/frontend/js/PartKeepr.js | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/frontend/js/PartKeepr.js b/src/frontend/js/PartKeepr.js @@ -43,7 +43,9 @@ Ext.application({ Ext.fly(document.body).on('contextmenu', this.onContextMenu, this); }, onContextMenu: function (e, target) { - e.preventDefault(); + if (!e.ctrlKey) { + e.preventDefault(); + } }, /** * Handles the login function. Initializes the part manager window,