forked from extern/easydiffusion
Undo on mac
This commit is contained in:
parent
969eb5632f
commit
044e3746ca
@ -298,7 +298,7 @@ function undoRemove() {
|
||||
undoButton.addEventListener('click', () => { undoRemove() })
|
||||
|
||||
document.addEventListener('keydown', function(e) {
|
||||
if (e.ctrlKey && e.key === 'z' && e.target == document.body) {
|
||||
if ((e.ctrlKey || e.metaKey) && e.key === 'z' && e.target == document.body) {
|
||||
undoRemove()
|
||||
}
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user