mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-05 15:40:10 +00:00
Merge pull request #378 from comfyanonymous/remapped_keyboard_fix
Fix CTRL-C, CTRL-V not working on remapped keyboards.
This commit is contained in:
@@ -7003,7 +7003,7 @@ LGraphNode.prototype.executeAction = function(action)
|
||||
block_default = true;
|
||||
}
|
||||
|
||||
if (e.code == "KeyC" && (e.metaKey || e.ctrlKey) && !e.shiftKey) {
|
||||
if ((e.keyCode === 67) && (e.metaKey || e.ctrlKey) && !e.shiftKey) {
|
||||
//copy
|
||||
if (this.selected_nodes) {
|
||||
this.copyToClipboard();
|
||||
@@ -7011,7 +7011,7 @@ LGraphNode.prototype.executeAction = function(action)
|
||||
}
|
||||
}
|
||||
|
||||
if (e.code == "KeyV" && (e.metaKey || e.ctrlKey)) {
|
||||
if ((e.keyCode === 86) && (e.metaKey || e.ctrlKey)) {
|
||||
//paste
|
||||
this.pasteFromClipboard(e.shiftKey);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user