Skip to content

Commit

Permalink
Disable Ctrl+Shift+L shortcut inherited by the RichEditBox control
Browse files Browse the repository at this point in the history
Disable Ctrl+Shift+L shortcut inherited by the RichEditBox control
  • Loading branch information
0x7c13 committed Mar 29, 2020
1 parent 615256c commit db9ba8e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Notepads/Controls/TextEditor/TextEditorCore.cs
Original file line number Diff line number Diff line change
Expand Up @@ -624,7 +624,8 @@ protected override void OnKeyDown(KeyRoutedEventArgs e)
e.Key == VirtualKey.Number5 || e.Key == VirtualKey.Number6 ||
e.Key == VirtualKey.Number7 || e.Key == VirtualKey.Number8 ||
e.Key == VirtualKey.Number9 || e.Key == VirtualKey.Tab ||
(shift.HasFlag(CoreVirtualKeyStates.Down) && e.Key == (VirtualKey)187))
(shift.HasFlag(CoreVirtualKeyStates.Down) && e.Key == (VirtualKey)187) ||
(shift.HasFlag(CoreVirtualKeyStates.Down) && e.Key == VirtualKey.L))
{
return;
}
Expand All @@ -634,7 +635,7 @@ protected override void OnKeyDown(KeyRoutedEventArgs e)
if (ctrl.HasFlag(CoreVirtualKeyStates.Down) &&
!shift.HasFlag(CoreVirtualKeyStates.Down) &&
!alt.HasFlag(CoreVirtualKeyStates.Down) &&
e.Key == VirtualKey.R || e.Key == VirtualKey.L)
(e.Key == VirtualKey.R || e.Key == VirtualKey.L))
{
var start = Document.Selection.StartPosition;
var end = Document.Selection.EndPosition;
Expand Down

0 comments on commit db9ba8e

Please sign in to comment.