mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-07 03:36:44 +02:00
[PT Run] Fix some keyboard issues on plugin (#13490)
* Don't use enter for accelerator keys in results Enter is already used to select commands in the context menu in the result entries. * Don't crash when trying to show a tooltip * Clear hanging tooltips when keyboard navigating * Starting/stopping service on Enter
This commit is contained in:
@@ -75,11 +75,12 @@ namespace Microsoft.PowerToys.Run.Plugin.Registry.Helper
|
||||
list.Add(new ContextMenuResult
|
||||
{
|
||||
AcceleratorKey = Key.Enter,
|
||||
AcceleratorModifiers = ModifierKeys.Control,
|
||||
Action = _ => TryToOpenInRegistryEditor(entry),
|
||||
FontFamily = "Segoe MDL2 Assets",
|
||||
Glyph = "\xE8A7", // E8A7 => Symbol: OpenInNewWindow
|
||||
PluginName = assemblyName,
|
||||
Title = $"{Resources.OpenKeyInRegistryEditor} (Enter)",
|
||||
Title = $"{Resources.OpenKeyInRegistryEditor} (Ctrl+Enter)",
|
||||
});
|
||||
|
||||
return list;
|
||||
|
||||
Reference in New Issue
Block a user