Skip to content

Commit

Permalink
Fixing default keytip keys
Browse files Browse the repository at this point in the history
  • Loading branch information
batzen committed Jun 26, 2018
1 parent db0828b commit e0d0fbd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Fluent.Ribbon/Controls/Ribbon.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1347,7 +1347,7 @@ public ObservableCollection<Key> KeyTipKeys
{
if (this.keyTipKeys == null)
{
this.keyTipKeys = new ObservableCollection<Key>(KeyTipService.DefaultKeyTipKeys);
this.keyTipKeys = new ObservableCollection<Key>(KeyTipService.GetDefaultKeyTipKeys());
this.keyTipKeys.CollectionChanged += this.HandleKeyTipKeys_CollectionChanged;
}

Expand Down
4 changes: 2 additions & 2 deletions Fluent.Ribbon/Services/KeyTipService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -60,15 +60,15 @@ public bool AreAnyKeyTipsVisible
/// <summary>
/// The default keys used to activate key tips.
/// </summary>
public static IList<Key> DefaultKeyTipKeys => new List<Key>
public static IList<Key> GetDefaultKeyTipKeys() => new List<Key>
{
Key.LeftAlt,
Key.RightAlt,
Key.F10
};

// List of key tip activation keys
public IList<Key> KeyTipKeys { get; } = new List<Key>();
public IList<Key> KeyTipKeys { get; } = GetDefaultKeyTipKeys();

#endregion

Expand Down

0 comments on commit e0d0fbd

Please sign in to comment.