mirror of
https://github.com/HeyPuter/puter
synced 2024-11-14 22:06:00 +00:00
close #430
This commit is contained in:
parent
7006dcc31c
commit
feabbaf564
@ -560,6 +560,7 @@ function UIItem(options){
|
|||||||
if($(e.target).hasClass('item-has-website-url-badge'))
|
if($(e.target).hasClass('item-has-website-url-badge'))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
// get the parent window
|
||||||
const $el_parent_window = $(el_item).closest('.window');
|
const $el_parent_window = $(el_item).closest('.window');
|
||||||
|
|
||||||
// first see if this is a ContextMenu call on multiple items
|
// 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)
|
if(event.target === el_item_name_editor)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
// if ctrl is pressed don't open ctxmenu, ctrl is for drag and copy
|
|
||||||
if(event.ctrlKey)
|
|
||||||
return false;
|
|
||||||
|
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
let menu_items;
|
let menu_items;
|
||||||
const $selected_items = $(el_item).closest('.item-container').find('.item-selected').not(el_item).addBack();
|
const $selected_items = $(el_item).closest('.item-container').find('.item-selected').not(el_item).addBack();
|
||||||
|
@ -40,7 +40,6 @@ import { ProcessService } from './services/ProcessService.js';
|
|||||||
import { PROCESS_RUNNING } from './definitions.js';
|
import { PROCESS_RUNNING } from './definitions.js';
|
||||||
import { LocaleService } from './services/LocaleService.js';
|
import { LocaleService } from './services/LocaleService.js';
|
||||||
import { SettingsService } from './services/SettingsService.js';
|
import { SettingsService } from './services/SettingsService.js';
|
||||||
|
|
||||||
import UIComponentWindow from './UI/UIComponentWindow.js';
|
import UIComponentWindow from './UI/UIComponentWindow.js';
|
||||||
import update_mouse_position from './helpers/update_mouse_position.js';
|
import update_mouse_position from './helpers/update_mouse_position.js';
|
||||||
import { LaunchOnInitService } from './services/LaunchOnInitService.js';
|
import { LaunchOnInitService } from './services/LaunchOnInitService.js';
|
||||||
|
Loading…
Reference in New Issue
Block a user