JBCefBrowser devtools close issue

Answered

Hi,

I invoked JBCefBrowser.openDevtools(), It will open pop-up development window, when I close the development  window, original JBCefBrowser will close also. I dont want to close original JBCefBrowser.

How should I do.

Thanks!

0
4 comments

Hi,

Please provide us with more details. What is your current implementation?

0

I registered a tool window and added JBTabbedPane to the contents of the tool window

ToolWindow.getContentManager().addContent(new ContentFactoryImpl().createContent(mainTabPane, "", false))

the JBTabbedPane's tab content is JBCefBrowser

JBTabbedPane mainTabPane = new JBTabbedPane()
JBCefBrowser browser = new JBCefBrowser();
mainTabPane.addTab(salveTabList.get(i).getLeft(), null, browser.getComponent());

I define the shortcut key to call the developer tool window

mainTabPane.registerKeyboardAction(e -> {
   browser.openDevtools();
}, KeyStroke.getKeyStroke("F12"), JComponent.WHEN_IN_FOCUSED_WINDOW);

It work, but when I close the dev-tool-window the mainTabPane become disable.

 

0

Hi,

It seems like a bug. Please report it on: https://youtrack.jetbrains.com/issues/IDEA in the User Interface. Embedded Browser (JCEF) subsystem.

Also, if there is anything in the logs, please attach it to the issue.

Thank you.

0

Please sign in to leave a comment.