File tree Expand file tree Collapse file tree
ICSharpCode.AvalonEdit/Editing Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -89,21 +89,21 @@ public SelectionMouseHandler(TextArea textArea)
8989 this . textArea = textArea ;
9090 }
9191
92- static SelectionMouseHandler ( )
93- {
94- EventManager . RegisterClassHandler ( typeof ( TextArea ) , Mouse . LostMouseCaptureEvent , new MouseEventHandler ( OnLostMouseCapture ) ) ;
95- }
92+ static SelectionMouseHandler ( )
93+ {
94+ EventManager . RegisterClassHandler ( typeof ( TextArea ) , Mouse . LostMouseCaptureEvent , new MouseEventHandler ( OnLostMouseCapture ) ) ;
95+ }
9696
97- private static void OnLostMouseCapture ( object sender , MouseEventArgs e )
98- {
99- TextArea textArea = ( TextArea ) sender ;
100- if ( Mouse . Captured != textArea )
101- {
102- SelectionMouseHandler handler = textArea . DefaultInputHandler . NestedInputHandlers . OfType < SelectionMouseHandler > ( ) . FirstOrDefault ( ) ;
103- if ( handler != null )
104- handler . mode = SelectionMode . None ;
105- }
106- }
97+ private static void OnLostMouseCapture ( object sender , MouseEventArgs e )
98+ {
99+ TextArea textArea = ( TextArea ) sender ;
100+ if ( Mouse . Captured != textArea )
101+ {
102+ SelectionMouseHandler handler = textArea . DefaultInputHandler . NestedInputHandlers . OfType < SelectionMouseHandler > ( ) . FirstOrDefault ( ) ;
103+ if ( handler != null )
104+ handler . mode = SelectionMode . None ;
105+ }
106+ }
107107
108108 public TextArea TextArea {
109109 get { return textArea ; }
You can’t perform that action at this time.
0 commit comments