Esc to remove drag elements
This commit is contained in:
parent
86c0974a6e
commit
98a2a2b989
|
@ -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)) {
|
if (event.ctrlKey && /^[1-9]$/.test(event.key)) {
|
||||||
// Your code here
|
// Your code here
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
|
|
Loading…
Reference in New Issue