|
|
|
@ -1,16 +1,29 @@ |
|
|
|
using System.Collections.Generic; |
|
|
|
|
|
|
|
#nullable enable |
|
|
|
using Avalonia.Metadata; |
|
|
|
|
|
|
|
namespace Avalonia.Input.Platform |
|
|
|
{ |
|
|
|
public class PlatformHotkeyConfiguration |
|
|
|
/// <summary>
|
|
|
|
/// The PlatformHotkeyConfiguration class represents a configuration for platform-specific hotkeys in an Avalonia application.
|
|
|
|
/// </summary>
|
|
|
|
public sealed class PlatformHotkeyConfiguration |
|
|
|
{ |
|
|
|
/// <summary>
|
|
|
|
/// Retrieves shared static instance of PlatformHotkeyConfiguration.
|
|
|
|
/// </summary>
|
|
|
|
/// <remarks>
|
|
|
|
/// Return value might be null, when application wasn't yet initialized.
|
|
|
|
/// </remarks>
|
|
|
|
public static PlatformHotkeyConfiguration? Instance => |
|
|
|
AvaloniaLocator.Current.GetService<PlatformHotkeyConfiguration>(); |
|
|
|
|
|
|
|
[PrivateApi] |
|
|
|
public PlatformHotkeyConfiguration() : this(KeyModifiers.Control) |
|
|
|
{ |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
[PrivateApi] |
|
|
|
public PlatformHotkeyConfiguration(KeyModifiers commandModifiers, |
|
|
|
KeyModifiers selectionModifiers = KeyModifiers.Shift, |
|
|
|
KeyModifiers wholeWordTextActionModifiers = KeyModifiers.Control) |
|
|
|
|