Improved keyboad shortcuts.

This commit is contained in:
Burak Kaan Köse
2026-03-08 13:21:42 +01:00
parent c1568d33e6
commit 15400d4096
35 changed files with 979 additions and 336 deletions
@@ -12,6 +12,11 @@ public class KeyboardShortcut
[PrimaryKey]
public Guid Id { get; set; }
/// <summary>
/// The application mode this shortcut applies to.
/// </summary>
public WinoApplicationMode Mode { get; set; } = WinoApplicationMode.Mail;
/// <summary>
/// The key combination string (e.g., "D", "Delete", "F1").
/// </summary>
@@ -23,9 +28,9 @@ public class KeyboardShortcut
public ModifierKeys ModifierKeys { get; set; }
/// <summary>
/// The mail operation this shortcut triggers.
/// The shortcut action this shortcut triggers.
/// </summary>
public MailOperation MailOperation { get; set; }
public KeyboardShortcutAction Action { get; set; }
/// <summary>
/// Whether this shortcut is enabled.
@@ -55,6 +60,6 @@ public class KeyboardShortcut
modifierText += "Win+";
return modifierText + Key;
}
}
}
}
}