Skip to content

Konado WebTool

Preface

Konado WebTool is a plugin that provides Web platform development tool support for Konado projects. Because Godot 4.x captures and disables all keyboard shortcuts by default on the Web platform, browser developer tool shortcuts such as F12 and F5 cannot be used normally. This plugin solves that problem by allowing common browser developer tool shortcuts on the Web platform, making it easier for developers to debug and develop in Web environments.

How It Works

Konado WebTool works by injecting JavaScript code on the Web platform to let shortcuts pass through. It will:

  1. Detect whether the current platform is Web
  2. If it is Web and developer tool support is enabled, inject shortcut handling code
  3. Dynamically build the allowed shortcut list based on configuration
  4. Listen for keyboard events and prevent default behavior for allowed shortcuts, allowing them to pass through to the browser

Comparison with Other Solutions

SolutionAdvantagesDisadvantages
Konado WebToolEasy to use, highly configurable, easy to maintainNo obvious disadvantages
Manually modify export templateFull controlHigh technical requirements, frequent updates needed
Switch development environmentCan debug on desktop platformCannot catch Web-platform-specific issues

Supported Browser Shortcuts

These shortcut specifications are based on standard developer tool shortcuts in mainstream browsers such as Chrome, Firefox, and Edge, and refer to official browser documentation:

ShortcutFunctionEnable option
F12Open developer toolsenable_f12
F5Refresh pageenable_f5
F11Toggle full screenenable_f11
Ctrl+Shift+I (Win/Linux) / Cmd+Opt+I (Mac)Open Elements panelenable_ctrl_shift_i
Ctrl+Shift+J (Win/Linux) / Cmd+Opt+J (Mac)Open Consoleenable_ctrl_shift_j
Ctrl+Shift+C (Win/Linux) / Cmd+Shift+C (Mac)Inspect element modeenable_ctrl_shift_c
Ctrl+U (Win/Linux) / Cmd+U (Mac)View page sourceenable_ctrl_u
Ctrl+R (Win/Linux) / Cmd+R (Mac)Refresh pageenable_ctrl_r

Configuration Options

In the autoloaded KND_WebTool node, you can configure the following properties:

PropertyTypeDefaultDescription
enable_web_devtoolbooltrueWhether to allow Web developer tool shortcuts
enable_f12booltrueWhether to enable F12
enable_f5booltrueWhether to enable F5
enable_f11booltrueWhether to enable F11
enable_ctrl_shift_ibooltrueWhether to enable Ctrl+Shift+I
enable_ctrl_shift_jbooltrueWhether to enable Ctrl+Shift+J
enable_ctrl_shift_cbooltrueWhether to enable Ctrl+Shift+C
enable_ctrl_ubooltrueWhether to enable Ctrl+U
enable_ctrl_rbooltrueWhether to enable Ctrl+R

Released under BSD3-Clause License.