feat: support keyboard shortcuts for delete, copy, and paste actions on the focused slot

This commit is contained in:
nekename committed 2026-03-29 12:07:15 +01:00
1 parent d3f3231839
commit 5afa842f97
1 file changed
+3
+3
View File
@@ -199,6 +199,9 @@
on:dblclick|stopPropagation={triggerVirtualPress}
on:keydown|stopPropagation={(e) => {
if (e.key === "Enter") select(e);
else if (e.key == "Delete") clear();
else if (e.ctrlKey && e.key == "c") copy();
else if (e.ctrlKey && e.key == "v") paste();
}}
on:keyup|stopPropagation={(e) => {
if (e.key === " ") select(e);