Allow bulk row deletion via keyboard even without a focused cell
This commit is contained in:
parent
59a354e0c5
commit
726945ea61
|
@ -25,6 +25,10 @@
|
||||||
} else if (e.key === "Enter" && (e.ctrlKey || e.metaKey)) {
|
} else if (e.key === "Enter" && (e.ctrlKey || e.metaKey)) {
|
||||||
e.preventDefault()
|
e.preventDefault()
|
||||||
dispatch("add-row-inline")
|
dispatch("add-row-inline")
|
||||||
|
} else if (e.key === "Delete" || e.key === "Backspace") {
|
||||||
|
if (Object.keys($selectedRows).length) {
|
||||||
|
dispatch("request-bulk-delete")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue