From feabbaf564f1ad030462027f9d357376f1a39257 Mon Sep 17 00:00:00 2001 From: Nariman Jelveh Date: Wed, 19 Jun 2024 21:07:41 -0700 Subject: [PATCH] close #430 --- src/UI/UIItem.js | 5 +---- src/initgui.js | 1 - 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/src/UI/UIItem.js b/src/UI/UIItem.js index 1fd05696..c3473138 100644 --- a/src/UI/UIItem.js +++ b/src/UI/UIItem.js @@ -560,6 +560,7 @@ function UIItem(options){ if($(e.target).hasClass('item-has-website-url-badge')) return false; + // get the parent window const $el_parent_window = $(el_item).closest('.window'); // first see if this is a ContextMenu call on multiple items @@ -753,10 +754,6 @@ function UIItem(options){ if(event.target === el_item_name_editor) return; - // if ctrl is pressed don't open ctxmenu, ctrl is for drag and copy - if(event.ctrlKey) - return false; - event.preventDefault(); let menu_items; const $selected_items = $(el_item).closest('.item-container').find('.item-selected').not(el_item).addBack(); diff --git a/src/initgui.js b/src/initgui.js index a8f37515..9be38b24 100644 --- a/src/initgui.js +++ b/src/initgui.js @@ -40,7 +40,6 @@ import { ProcessService } from './services/ProcessService.js'; import { PROCESS_RUNNING } from './definitions.js'; import { LocaleService } from './services/LocaleService.js'; import { SettingsService } from './services/SettingsService.js'; - import UIComponentWindow from './UI/UIComponentWindow.js'; import update_mouse_position from './helpers/update_mouse_position.js'; import { LaunchOnInitService } from './services/LaunchOnInitService.js';