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)) {
|
||||
e.preventDefault()
|
||||
dispatch("add-row-inline")
|
||||
} else if (e.key === "Delete" || e.key === "Backspace") {
|
||||
if (Object.keys($selectedRows).length) {
|
||||
dispatch("request-bulk-delete")
|
||||
}
|
||||
}
|
||||
return
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue