Skip to content

Commit

Permalink
Merge pull request #360 from stylefish/keyTipFix
Browse files Browse the repository at this point in the history
Toggling of KeyTips should not happen when Shift is pressed
  • Loading branch information
batzen authored Oct 18, 2016
2 parents 474e316 + 19dd0ff commit 555306e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Fluent.Ribbon/Services/KeyTipService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -322,11 +322,11 @@ private void OnWindowKeyUp(object sender, KeyEventArgs e)

private static bool IsShowOrHideKey(KeyEventArgs e)
{
return e.Key == Key.System
&& (e.SystemKey == Key.LeftAlt
|| e.SystemKey == Key.RightAlt
|| e.SystemKey == Key.F10
|| e.SystemKey == Key.Space);
return e.Key == Key.System && !Keyboard.IsKeyDown(Key.LeftShift) && !Keyboard.IsKeyDown(Key.RightShift)
&& (e.SystemKey == Key.LeftAlt
|| e.SystemKey == Key.RightAlt
|| e.SystemKey == Key.F10
|| e.SystemKey == Key.Space);
}

private void ClearUserInput()
Expand Down

0 comments on commit 555306e

Please sign in to comment.