use crate::services::hotkey::Hotkey;
use crate::services::hotkey::HotkeyScope;
impl Hotkey {
pub fn new(key: &str, description: &str) -> Self {
Self {
key: key.to_string(),
description: description.to_string(),
scope: HotkeyScope::Global,
priority: 0,
}
}
pub fn scope(mut self, scope: HotkeyScope) -> Self {
self.scope = scope;
self
}
pub fn priority(mut self, priority: u32) -> Self {
self.priority = priority;
self
}
}