Browse Source

Merge pull request #9619 from comesx4/Add-Ctrl+Insert-and-Shift+Insert

fix: Add more copy&paste hotkeys
pull/9629/head
Max Katz 4 years ago
committed by GitHub
parent
commit
bf5d217412
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      src/Avalonia.Base/Input/Platform/PlatformHotkeyConfiguration.cs

6
src/Avalonia.Base/Input/Platform/PlatformHotkeyConfiguration.cs

@ -20,7 +20,8 @@ namespace Avalonia.Input.Platform
WholeWordTextActionModifiers = wholeWordTextActionModifiers; WholeWordTextActionModifiers = wholeWordTextActionModifiers;
Copy = new List<KeyGesture> Copy = new List<KeyGesture>
{ {
new KeyGesture(Key.C, commandModifiers) new KeyGesture(Key.C, commandModifiers),
new KeyGesture(Key.Insert, KeyModifiers.Control)
}; };
Cut = new List<KeyGesture> Cut = new List<KeyGesture>
{ {
@ -28,7 +29,8 @@ namespace Avalonia.Input.Platform
}; };
Paste = new List<KeyGesture> Paste = new List<KeyGesture>
{ {
new KeyGesture(Key.V, commandModifiers) new KeyGesture(Key.V, commandModifiers),
new KeyGesture(Key.Insert, KeyModifiers.Shift)
}; };
Undo = new List<KeyGesture> Undo = new List<KeyGesture>
{ {

Loading…
Cancel
Save