WebKit2.WebInspector::detach
connect('detach', function (webInspector, ): Boolean);
Emitted when the inspector is requested to be detached from the window it is currently attached to. The inspector is detached when the inspector page is about to be closed, and this signal is emitted right before WebKit2.WebInspector::closed, or when the user clicks on the detach button in the inspector view to show the inspector in a separate window. In this case the signal WebKit2.WebInspector::open-window is emitted after this one.
To prevent the inspector vew from being detached you can connect to this signal and simply return true.
- webInspector
instance of WebKit2.WebInspector that is emitting the signal
- Returns
true to stop other handlers from being invoked for the event. false to propagate the event further.