Add keyboard shortcut to duplicate layers (#214)

* Add keyboard shortcut to duplicate layers

* Avoid heap allocation in DuplicateSelectedLayers
This commit is contained in:
Till Arnold
2021-06-16 11:15:02 +02:00
committed by GitHub
parent cd1ac3817d
commit 322526b983
5 changed files with 20 additions and 1 deletions
+1
View File
@@ -167,6 +167,7 @@ impl Default for Mapping {
entry! {action=GlobalMessage::LogInfo, key_down=Key1},
entry! {action=GlobalMessage::LogDebug, key_down=Key2},
entry! {action=GlobalMessage::LogTrace, key_down=Key3},
entry! {action=DocumentMessage::DuplicateSelectedLayers, key_down=KeyD, modifiers=[KeyControl]},
];
Self { up, down, pointer_move }
}