godot-metadata-inspector
godot-metadata-inspector copied to clipboard
Plugin consumes input key events in editor
Godot 3.5.1 stable Metadata Inspector v0.2.1
Some time after enabling the plugin I noticed that certain events were being consumed by the inspector without releasing them to the editor, in particular the "Redo" function with a built in accelerator shortcut of Shift+Ctrl+Z -- more specifically, for reproduction purposes, when a node that the inspector supports has been "handled" (ie: selected), the inspector panel appears to steal focus during specific input events, such as trying to perform a search in this box:
The effect is much more obvious when both the inspector and metadata inspector tabs are visible at once.
Thanks for reporting this issue, but Metadata Inspector will not be required in Godot 4, which has native support for exposing and editing Metadata. So I am reluctant to further develop it.
I did look into the problem you described, but I am not sure if I understand it, and then I was able to break the undo/redo history behavior with random testing in additional different ways. This might just be out of control, since those things are up to the engine and not the plugin to handle. Performing undo/redo changes the focus to the element that had it in the undo history, but if the history is buggish or broken it might appear as "focus stealing" perhaps. Conversely it could be that there is a bug in the plugin in your case that breaks the focus, so it should show an error in the debugging output. So who knows where this is coming from. Godot 3 has known bugs with focus behavior and intermixing normal undo history with plugin history is not really a widely used feature. Without further logs or videos of what is happening I can't really address this specific behavior.
Anyway, since this is not critical and an unclear case, I think it is better if we just move on to Godot 4.