Seneral / Node_Editor_Framework

A flexible and modular Node Editor Framework for creating node based displays and editors in Unity
https://nodeeditor.seneral.dev
MIT License
2.01k stars 415 forks source link

Left control key is eaten by NodeEditorInputControls #127

Closed molocai closed 6 years ago

molocai commented 7 years ago

Copying, pasting or selecting all (CTRL + C/V/A) are not working in node fields even after commenting out every static method using a HotkeyAttribute with KeyCode.LeftControl.

Anyone having the same problem?

Seneral commented 7 years ago

Hey, sorry for the super late reply, somehow slipped from my attention. Seems like HandleNodeSnap, the last method in NodeEditorInputControls, causes this. Removing the event.Use call should fix it, will do that soon:)

Seneral commented 7 years ago

Tried to fix it in the above commit, removing all potentially blocking controls (calls to Event.Use ()) but it seems to persist so the cause lies somewhere else. Still have to find out, may need some time... Seneral

Seneral commented 6 years ago

Probably have to move it past the GUI (priority > 100). Just and idea, will take a look again when I have time.

Seneral commented 6 years ago

Ok turned out it is not blocked by any control, but as the nodes uses the custom RTEditorGUI.FloatField for potential runtime uses, it does not support copy paste by default (relies on GUI.TextField). To support this on all use cases, I added a generic copy paste functionality, which works perfectly fine (even at runtime) now:)

Seneral commented 6 years ago

Fixed:)