doc/devdocs/modules/shortcut_guide.md
Public overview - Microsoft Learn
Shortcut Guide is a PowerToy that displays an overlay of available keyboard shortcuts when the Windows key is pressed and held. It provides a visual reference for Windows key combinations, helping users discover and utilize built-in Windows shortcuts.
dllmain.cppContains DLL boilerplate code. Implements the PowertoyModuleIface, including enable/disable functionality and GPO policy handling. Captures hotkey events and starts the PowerToys.ShortcutGuide.exe process to display the shortcut guide window.
shortcut_guide.cppContains the module interface code. It initializes the settings values and the keyboard event listener. Defines the OverlayWindow class, which manages the overall logic and event handling for the PowerToys Shortcut Guide.
overlay_window.cppContains the code for loading the SVGs, creating and rendering of the overlay window. Manages and displays overlay windows with SVG graphics through two main classes:
keyboard_state.cppContains helper methods for checking the current state of the keyboard.
target_state.cppState machine that handles the keyboard events. It's responsible for deciding when to show the overlay, when to suppress the Start menu (if the overlay is displayed long enough), etc. Handles state transitions and synchronization to ensure the overlay is shown or hidden appropriately based on user interactions.
trace.cppContains code for telemetry.
animation.cppHandles the timing and interpolation of animations. Calculates the current value of an animation based on elapsed time and a specified easing function.
d2d_svg.cppProvides functionality for loading, resizing, recoloring, rendering, and manipulating SVG images using Direct2D.
d2d_text.cppHandles creation, resizing, alignment, and rendering of text using Direct2D and DirectWrite.
d2d_window.cppManages a window using Direct2D and Direct3D for rendering. Handles window creation, resizing, rendering, and destruction.
native_event_waiter.cppWaits for a named event and executes a specified action when the event is triggered. Uses a separate thread to handle event waiting and action execution.
tasklist_positions.cppHandles retrieving and updating the positions and information of taskbar buttons in Windows.
main.cppThe entry point for the PowerToys Shortcut Guide application. Handles initialization, ensures single instance execution, manages parent process termination, creates and displays the overlay window, and runs the main event loop.
A community-contributed version 2 is in development that will support: