Undo on mac

This commit is contained in:
cmdr2 2023-03-28 17:32:20 +05:30
parent 969eb5632f
commit 044e3746ca

View File

@ -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()
}
})