Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PT Run] Added dummy key event to prevent Start Menu from popping up #4874

Merged

Conversation

arjunbalgovind
Copy link
Contributor

Summary of the Pull Request

This PR tweaks the HotkeyManager code such that a dummy key event is sent after invoking the shortcut. This is required to prevent Start Menu from popping up in the scenario where user releases Win key before Space (if Win+Space is the shortcut). The same procedure is done in Keyboard Manager when remapping shortcuts, because in case of Windows shortcuts Start menu appears, and if its an Alt based shortcut, the application's menu bar may get triggered.

PR Checklist

Validation Steps Performed

Validated manually that Start menu doesn't open while releasing Win key before Space.

@arjunbalgovind arjunbalgovind added the Product-PowerToys Run Improved app launch PT Run (Win+R) Window label Jul 8, 2020
@arjunbalgovind arjunbalgovind requested review from crutkas, enricogior and a team July 8, 2020 18:31
Copy link
Contributor

@enricogior enricogior left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested, it works as expected and the Start menu doesn't show up if the Win key is released before space.

Copy link
Contributor

@alekhyareddy28 alekhyareddy28 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Validated that start menu does not pop up when Winkey is released with space pressed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Product-PowerToys Run Improved app launch PT Run (Win+R) Window
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants