Files
cursor-lang/CursorLang/Models/LayoutChangedEventArgs.cs
T
2026-08-09 20:02:23 +05:00

24 lines
643 B
C#

namespace CursorLang.Models;
/// <summary>
/// Why the current layout has changed.
/// </summary>
public enum LayoutChangeReason
{
/// <summary>The user switched the layout in the active application.</summary>
UserSwitched,
/// <summary>The user moved to another application that has a layout of its own.</summary>
ApplicationSwitched,
}
/// <summary>
/// The data of a layout change event.
/// </summary>
public sealed class LayoutChangedEventArgs(KeyboardLayout layout, LayoutChangeReason reason) : EventArgs
{
public KeyboardLayout Layout { get; } = layout;
public LayoutChangeReason Reason { get; } = reason;
}