File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change 66using Avalonia ;
77using Avalonia . Controls ;
88using Avalonia . Controls . Primitives ;
9+ using Avalonia . Input ;
910using Avalonia . Interactivity ;
1011using Avalonia . Layout ;
1112using Avalonia . Media ;
@@ -273,6 +274,19 @@ protected override void OnPropertyChanged(AvaloniaPropertyChangedEventArgs chang
273274 }
274275 }
275276
277+ protected override void OnKeyDown ( KeyEventArgs e )
278+ {
279+ // Supports Ctrl+Insert for copy. (Doubao uses Ctrl+Insert to detect selection)
280+ if ( e . Key == Key . Insert && e . KeyModifiers == KeyModifiers . Control )
281+ {
282+ Copy ( ) ;
283+ e . Handled = true ;
284+ return ;
285+ }
286+
287+ base . OnKeyDown ( e ) ;
288+ }
289+
276290 protected override void OnTextChanged ( EventArgs e )
277291 {
278292 base . OnTextChanged ( e ) ;
You can’t perform that action at this time.
0 commit comments