mirror of
https://github.com/nekename/OpenDeck.git
synced 2026-10-28 09:44:01 +00:00
feat: support keyboard shortcuts for delete, copy, and paste actions on the focused slot
This commit is contained in:
1 file changed
+3
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user