Skip to content

Hotkey to reload shader; updated global hotkeys menu#261

Open
matijaerceg wants to merge 5 commits into
mausimus:masterfrom
matijaerceg:feature/hotkeys-reload-shader-upstream
Open

Hotkey to reload shader; updated global hotkeys menu#261
matijaerceg wants to merge 5 commits into
mausimus:masterfrom
matijaerceg:feature/hotkeys-reload-shader-upstream

Conversation

@matijaerceg

Copy link
Copy Markdown

Global Hotkeys menu:
image

Bottom of Shaders menu:
image

Summary

This stacked PR adds a global hotkey for reloading the current shader and surfaces it consistently in the Shader menu + Global Hotkeys UX. This smooths workflow when developing custom shaders.

Base branch: pr/hotkeys-clean
(Designed to be reviewed/merged on top of the previous hotkeys PR.)

What’s included

  • Added new action: Reload Current Shader
    • Shader menu item: Reload Current Shader (immediate action, no ellipsis)
  • Added new configurable global hotkey entry:
    • Global Hotkeys menu item: Reload Current Shader...
    • Default hotkey: Ctrl+Shift+R
  • Added hotkeys menu clarity improvement:
    • Inactive heading Set Hotkeys: below the Enable toggle

Behavior

  • Triggering Reload Current Shader:
    • If current shader is imported: re-import/recompile from its original path
    • Otherwise: refresh/reload current preset (UpdateShaderPreset)
  • Global hotkey route is wired through existing hotkey infrastructure and WM_HOTKEY handling.
@matijaerceg matijaerceg changed the title Hotkey to reload shader; Hotkey to reload shader; updated global hotkeys menu Feb 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant