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

Add Restart Keys #76

Merged
merged 5 commits into from
Oct 6, 2024
Merged

Add Restart Keys #76

merged 5 commits into from
Oct 6, 2024

Conversation

mdgrs-mei
Copy link
Owner

@mdgrs-mei mdgrs-mei commented Oct 6, 2024

This PR adds RestartKeys to the KeyBinding class. It's mapped to Ctrl+r by default.

When you press the restart key while the launcher is open, it takes you back to the top menu. It has the same effect as Quit + Invoke-PSRun. This feature was requested in #51.

Since PowerShellRun.ExitStatus was introduced to implement the restart feature, the parent menu restoration was re-written by using it. Restore-PSRunParentSelector is deprecated now.

@mdgrs-mei mdgrs-mei merged commit a9671cb into main Oct 6, 2024
3 checks passed
@mdgrs-mei mdgrs-mei deleted the add-restart-key branch October 6, 2024 13:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant