using UnityEditor.ShortcutManagement;
using UnityEngine;
namespace UnityEditor.Timeline.Actions
{
///
/// Use this attribute to make an action work with the shortcut system.
///
///
/// TimelineShortcutAttribute needs to be added to a static method.
///
///
public class TimelineShortcutAttribute : ShortcutManagement.ShortcutAttribute
{
///
/// TimelineShortcutAttribute Constructor
///
/// Id to register the shortcut. It will automatically be prefix by 'Timeline/' in order to be in the 'Timeline' section of the shortcut manager.
/// Optional key code for default binding.
/// Optional shortcut modifiers for default binding.
public TimelineShortcutAttribute(string id, KeyCode defaultKeyCode, ShortcutModifiers defaultShortcutModifiers = ShortcutModifiers.None)
: base("Timeline/" + id, typeof(TimelineWindow), defaultKeyCode, defaultShortcutModifiers) { }
}
}