Skip to content

Commit

Permalink
Terminating keytips on unknown keys/keyboard navigation request #258
Browse files Browse the repository at this point in the history
  • Loading branch information
batzen committed Feb 6, 2016
1 parent 9a1b3ea commit 1acbcca
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Fluent.Ribbon/Services/KeyTipService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,14 @@ private void OnWindowPreviewKeyDown(object sender, KeyEventArgs e)
// Don't do anything and let WPF handle the rest
if (isKeyRealInput == false)
{
// This block is a "temporary" fix for keyboard navigation not matching the office behavior.
// If someone finds a way to implement it properly, here is your starting point.
// In office: If you navigate by keyboard (in menus) and keytips are shown they are shown or hidden based on the menu you are in.
// Implementing navigation the way office does would require complex focus/state tracking etc. so i decided to just terminate keytips and not restore focus.
{
this.backUpFocusedControl = null;
this.activeAdornerChain?.Terminate();
}
return;
}

Expand Down

0 comments on commit 1acbcca

Please sign in to comment.