editor: prevent interaction with widgets when shift or ctrl is held

This commit is contained in:
bordun 2020-03-23 11:42:13 +01:00
parent 73010ed1b0
commit 99f759c116

View file

@ -26,7 +26,7 @@ var handleClick = function(event) {
if (!widget) return
// if the widget is not already selected
if (!widget.container.classList.contains('editing')) {
if (!widget.container.classList.contains('editing') || event.detail.ctrlKey || event.detail.shiftKey) {
// add a flag to the original event to prevent draginit
// and prevent any further fast-click (ie input focus)
eventData.capturedByEditor = true