Esc to remove drag elements

This commit is contained in:
city-unit 2023-08-30 15:58:14 -04:00
parent 86c0974a6e
commit 98a2a2b989
1 changed files with 7 additions and 0 deletions

View File

@ -1089,6 +1089,13 @@ export function initRossMods() {
}
}
if ($(".draggable").is(":visible")) {
// Remove the first matched element
$('.draggable:first').remove();
return;
}
if (event.ctrlKey && /^[1-9]$/.test(event.key)) {
// Your code here
event.preventDefault();