Skip to content

Avoid F12 auto open Devtools #54

@sxmxta

Description

@sxmxta

Use the Chromium.OnChromeCommand event and set return to True if command_id is IDC_DEV_TOOLS_TOGGLE

Chromium().SetOnChromeCommand(func(sender lcl.IObject, browser *cef.ICefBrowser, commandId int32, disposition consts.TCefWindowOpenDisposition) bool {
       if commandId == consts.IDC_DEV_TOOLS_TOGGLE {
		return true
	}
	return false
})

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions