public void SetShortcut(ModifierKey modifier, Key key) { hasShortcut = true; shortcutModifierKey = KeyMapper.MapModifier(modifier); shortcutKey = KeyMapper.MapKey(key); }