PowerToys/src/modules/shortcut_guide
2019-12-06 11:40:23 +03:00
..
dllmain.cpp FancyZones and Shortcut Guide initial commit 2019-09-05 18:12:40 +02:00
keyboard_state.cpp FancyZones and Shortcut Guide initial commit 2019-09-05 18:12:40 +02:00
keyboard_state.h FancyZones and Shortcut Guide initial commit 2019-09-05 18:12:40 +02:00
overlay_window.cpp Hide Shortcut Guide when screenshots are taken (#605) 2019-10-31 10:26:24 +01:00
overlay_window.h Hide Shortcut Guide when screenshots are taken (#605) 2019-10-31 10:26:24 +01:00
pch.cpp FancyZones and Shortcut Guide initial commit 2019-09-05 18:12:40 +02:00
pch.h FancyZones and Shortcut Guide initial commit 2019-09-05 18:12:40 +02:00
README.md FancyZones and Shortcut Guide initial commit 2019-09-05 18:12:40 +02:00
resource.h Add radio button group and add theme select for ShortcutGuide 2019-10-03 10:12:36 +02:00
shortcut_guide.cpp Use WinRT JSON parser instead of custom cpprestsdk solution (#822) 2019-12-06 11:40:23 +03:00
shortcut_guide.h Use WinRT JSON parser instead of custom cpprestsdk solution (#822) 2019-12-06 11:40:23 +03:00
shortcut_guide.rc Add version number to telemetry event 2019-10-14 19:22:14 +02:00
shortcut_guide.vcxproj FancyZones and Shortcut Guide initial commit 2019-09-05 18:12:40 +02:00
shortcut_guide.vcxproj.filters FancyZones and Shortcut Guide initial commit 2019-09-05 18:12:40 +02:00
target_state.cpp Hide Shortcut Guide when screenshots are taken (#605) 2019-10-31 10:26:24 +01:00
target_state.h FancyZones and Shortcut Guide initial commit 2019-09-05 18:12:40 +02:00
trace.cpp Fix telemetry event names 2019-10-28 19:07:32 +01:00
trace.h Fix telemetry event names 2019-10-28 19:07:32 +01:00

Windows Key Shortcut Guide

Introduction

The Windows Key Shortcut Guide shows common keyboard shortcuts that use the Windows key.

Usage

Press and hold the keyboard Windows key for about 1 second, an overlay appears showing keyboard shortcuts that use the Windows Key:

  • Shortcuts for changing the position of the active window.
  • Common Windows shortcuts.
  • Taskbar shortcuts.

Releasing the Windows key will make the overlay disappear. If the shortcut guide was visible for less than a second, the start menu will appear after the shortcut guide is dismissed.

Image of the Overlay

Windows key keyboard shortcuts can be used while the guide is being shown and the result of those shortcuts (active window moved, arrow shortcut behavior changes, etc) will be displayed in the guide.

Options

These configurations can be edited from the PowerToys Settings screen:

  • "How long to press the Windows key before showing the Shortcut Guide (ms)" - How many milliseconds to press the Windows key before the Shortcut Guide is shown.
  • "Opacity of the Shortcut Guide's overlay background (%)" - Changing this setting controls the opacity of the Shortcut Guide's overlay background, occluding the work environment beneath the Shortcut Guide to different degrees.

Image of the Options

Backlog

The backlog for the utility can be found here and the source code is here.

Code organization

dllmain.cpp

Contains DLL boilerplate code.

shortcut_guide.cpp

Contains the module interface code. It initializes the settings values and the keyboard event listener.

overlay_window.cpp

Contains the code for loading the SVGs, creating and rendering of the overlay window.

keyboard_state.cpp

Contains helper methods for checking the current state of the keyboard.

target_state.cpp

State machine that handles the keyboard events. Its responsible for deciding when to show the overlay, when to suppress the Start menu (if the overlay is displayed long enough), etc.

trace.cpp

Contains code for telemetry.