Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feat] Keybindings For Inspect Element Console. #3788

Closed
Labham-Jain opened this issue Mar 28, 2022 · 3 comments
Closed

[feat] Keybindings For Inspect Element Console. #3788

Labham-Jain opened this issue Mar 28, 2022 · 3 comments

Comments

@Labham-Jain
Copy link

Describe the problem

I'm building an app which has custom contextmenu so in order to create it, we need to disable the default browser behaviour. And as tauri doesn't have keybinding for inspect element it's hard to open it.

Describe the solution you'd like

Adding support of keybinding for like reload and inspect element options

Alternatives considered

No response

Additional context

No response

@amrbashir
Copy link
Member

You should set up the keybindings yourself and call the open_devtools method.

You can add another entry in your custom menu that is only available in development and it invokes a tauri command to open the devtools.

Here is the command:

#[tauri::command]
fn open_devtools(window: Window) {
  window.open_devtools();
}

@lucasfernog
Copy link
Member

I think we should implement this on tauri since it's a super common functionality.

@lucasfernog
Copy link
Member

But this is duplicate, see #3776

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants