Skip to content

Commit f334dd7

Browse files
committed
Remove conflicting shortcut
1 parent f0814fb commit f334dd7

File tree

2 files changed

+1
-17
lines changed

2 files changed

+1
-17
lines changed

Flow.Launcher.Plugin.OneNote/UI/Views/NewOneNotePagePreviewPanel.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
HorizontalAlignment="Right"
4141
Source="{Binding NewPageUri}" />-->
4242
</Grid>
43-
<Grid PreviewKeyDown="OnKeyDown">
43+
<Grid>
4444
<Grid.RowDefinitions>
4545
<RowDefinition Height="Auto" />
4646
<RowDefinition Height="5" />

Flow.Launcher.Plugin.OneNote/UI/Views/NewOneNotePagePreviewPanel.xaml.cs

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -32,21 +32,5 @@ private void FocusTextBox()
3232
Keyboard.Focus(TextBoxPageTitle);
3333
TextBoxPageTitle.CaretIndex = TextBoxPageTitle.Text.Length;
3434
}
35-
36-
private void OnKeyDown(object sender, KeyEventArgs e)
37-
{
38-
if (e.Key != Key.Tab)
39-
return;
40-
41-
if (e.Source is not (TextBox or Button))
42-
return;
43-
44-
var focusNavigationDirection = Keyboard.IsKeyDown(Key.LeftShift) || Keyboard.IsKeyDown(Key.RightShift)
45-
? FocusNavigationDirection.Previous
46-
: FocusNavigationDirection.Next;
47-
((UIElement)Keyboard.FocusedElement)?.MoveFocus(new TraversalRequest(focusNavigationDirection));
48-
49-
e.Handled = true;
50-
}
5135
}
5236
}

0 commit comments

Comments
 (0)