mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-15 22:28:10 +08:00
Add keyboard shortcut to duplicate layers (#214)
* Add keyboard shortcut to duplicate layers * Avoid heap allocation in DuplicateSelectedLayers
This commit is contained in:
committed by
Keavon Chambers
parent
310db82ab4
commit
ff232bd722
@@ -202,10 +202,12 @@ export default defineComponent({
|
||||
on_mouse_move(e.offsetX, e.offsetY);
|
||||
},
|
||||
async keyDown(e: KeyboardEvent) {
|
||||
e.preventDefault();
|
||||
const { on_key_down } = await wasm;
|
||||
on_key_down(e.key);
|
||||
},
|
||||
async keyUp(e: KeyboardEvent) {
|
||||
e.preventDefault();
|
||||
const { on_key_up } = await wasm;
|
||||
on_key_up(e.key);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user