Skip to content

Commit ea6a297

Browse files
Add Tab key to list of special keys handled in the ScrollBehavior
Co-authored-by: Corvin <43533385+corvinsz@users.noreply.github.com>
1 parent fe5b943 commit ea6a297

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/MaterialDesignThemes.Wpf/Behaviors/Internal/TabControlHeaderScrollBehavior.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ private void OnTabControlPreviewKeyDown(object sender, KeyEventArgs e)
121121
if (!_isAnimatingScroll)
122122
return;
123123

124-
if (e.Key is Key.Left or Key.Right or Key.Home or Key.End or Key.PageUp or Key.PageDown)
124+
if (e.Key is Key.Left or Key.Right or Key.Home or Key.End or Key.PageUp or Key.PageDown or Key.Tab)
125125
e.Handled = true;
126126
}
127127

0 commit comments

Comments
 (0)