Skip to content

Konado WebTool

Introduction

Konado WebTool is a plugin that provides web platform development tool support for the Konado project. Since Godot 4.x captures and disables all keyboard shortcuts by default on the web platform, browser DevTools shortcuts (such as F12, F5, etc.) cannot be used normally. This plugin solves this problem by allowing common browser DevTools shortcuts on the web platform, making it easier for developers to debug and develop in a web environment.

How It Works

Konado WebTool injects JavaScript code on the web platform to release keyboard shortcuts. It will:

  1. Detect whether the current platform is the web platform
  2. If it is the web platform and DevTools support is enabled, inject the shortcut handling code
  3. Dynamically build the list of allowed shortcuts based on configuration
  4. Listen for keyboard events, prevent default behaviour for allowed shortcuts, thereby passing them through to the browser

Comparison with Other Solutions

SolutionAdvantagesDisadvantages
Konado WebToolSimple to use, highly configurable, easy to maintainNo significant disadvantages
Manual export template modificationFull controlHigh technical demands, requires frequent updates
Development environment switchingCan debug on desktop platformCannot capture web platform-specific issues

Supported Browser Shortcuts

These shortcuts are based on the standard DevTools shortcuts for mainstream browsers (such as Chrome, Firefox, Edge, etc.), referencing official documentation from each browser:

ShortcutFunctionEnable Option
F12Open DevToolsenable_f12
F5Refresh pageenable_f5
F11Toggle fullscreenenable_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 auto-loaded KND_WebTool node, you can configure the following properties:

PropertyTypeDefaultDescription
enable_web_devtoolbooltrueEnable web DevTools shortcut passthrough
enable_f12booltrueEnable F12 shortcut
enable_f5booltrueEnable F5 shortcut
enable_f11booltrueEnable F11 shortcut
enable_ctrl_shift_ibooltrueEnable Ctrl+Shift+I shortcut
enable_ctrl_shift_jbooltrueEnable Ctrl+Shift+J shortcut
enable_ctrl_shift_cbooltrueEnable Ctrl+Shift+C shortcut
enable_ctrl_ubooltrueEnable Ctrl+U shortcut
enable_ctrl_rbooltrueEnable Ctrl+R shortcut

Released under BSD3-Clause License.