improved shortcuts for service plugin (#9220)

This commit is contained in:
Davide Giacometti 2021-01-22 15:02:20 +01:00 committed by GitHub
parent c8e43cb77d
commit eed89eff45
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 8 deletions

View File

@ -62,7 +62,7 @@ namespace Microsoft.PowerToys.Run.Plugin.Service
Glyph = "\xE72C",
FontFamily = "Segoe MDL2 Assets",
AcceleratorKey = Key.R,
AcceleratorModifiers = ModifierKeys.Control | ModifierKeys.Shift,
AcceleratorModifiers = ModifierKeys.Control,
Action = _ =>
{
Task.Run(() => ServiceHelper.ChangeStatus(serviceResult, Action.Restart, _context.API));
@ -96,7 +96,7 @@ namespace Microsoft.PowerToys.Run.Plugin.Service
Glyph = "\xE8A7",
FontFamily = "Segoe MDL2 Assets",
AcceleratorKey = Key.O,
AcceleratorModifiers = ModifierKeys.Control | ModifierKeys.Shift,
AcceleratorModifiers = ModifierKeys.Control,
Action = _ =>
{
Task.Run(() => ServiceHelper.OpenServices());

View File

@ -8,8 +8,10 @@
// </auto-generated>
//------------------------------------------------------------------------------
namespace Microsoft.PowerToys.Run.Plugin.Service.Properties
{
namespace Microsoft.PowerToys.Run.Plugin.Service.Properties {
using System;
/// <summary>
/// A strongly-typed resource class, for looking up localized strings, etc.
/// </summary>
@ -68,7 +70,7 @@ namespace Microsoft.PowerToys.Run.Plugin.Service.Properties
}
/// <summary>
/// Looks up a localized string similar to Open services (Ctrl+Shift+O).
/// Looks up a localized string similar to Open services (Ctrl+O).
/// </summary>
internal static string wox_plugin_service_open_services {
get {
@ -113,7 +115,7 @@ namespace Microsoft.PowerToys.Run.Plugin.Service.Properties
}
/// <summary>
/// Looks up a localized string similar to Restart (Ctrl+Shift+R).
/// Looks up a localized string similar to Restart (Ctrl+R).
/// </summary>
internal static string wox_plugin_service_restart {
get {

View File

@ -121,7 +121,7 @@
<value>Continue</value>
</data>
<data name="wox_plugin_service_open_services" xml:space="preserve">
<value>Open services (Ctrl+Shift+O)</value>
<value>Open services (Ctrl+O)</value>
</data>
<data name="wox_plugin_service_paused" xml:space="preserve">
<value>Paused</value>
@ -136,7 +136,7 @@
<value>Service</value>
</data>
<data name="wox_plugin_service_restart" xml:space="preserve">
<value>Restart (Ctrl+Shift+R)</value>
<value>Restart (Ctrl+R)</value>
</data>
<data name="wox_plugin_service_restarted_notification" xml:space="preserve">
<value>{0} has been restarted</value>