litegraph.js icon indicating copy to clipboard operation
litegraph.js copied to clipboard

Keybindings config file

Open dbenedb opened this issue 2 years ago • 1 comments

Hi! I'm coming from a software with very different node keybindings (Blender) and I would like to have them in litegraph as an additional shortcuts, but it looks that those are hardcoded in litegraph.core.js.

Would it be feasible and OK to abstract all interaction bindings to a separate config file?

dbenedb avatar Jun 18 '23 19:06 dbenedb

sure, it can be done. All bindings are in onKey callback in GraphCanvas, it should be easy to add a layer of indirection.

jagenjo avatar Jun 19 '23 08:06 jagenjo